Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LISA Simulation
LISA Instrument
Commits
5ce3bb0c
Commit
5ce3bb0c
authored
1 month ago
by
Wolfgang Kastaun
Browse files
Options
Downloads
Patches
Plain Diff
provide convenience method to set up dsp based shift inversion
parent
4233c507
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisainstrument/shift_inversion_dask.py
+21
-0
21 additions, 0 deletions
lisainstrument/shift_inversion_dask.py
with
21 additions
and
0 deletions
lisainstrument/shift_inversion_dask.py
+
21
−
0
View file @
5ce3bb0c
...
@@ -17,6 +17,7 @@ from lisainstrument.regular_interpolators import (
...
@@ -17,6 +17,7 @@ from lisainstrument.regular_interpolators import (
RegularInterpolator
,
RegularInterpolator
,
make_regular_interpolator_lagrange
,
make_regular_interpolator_lagrange
,
)
)
from
lisainstrument.dynamic_delay_dsp
import
make_regular_interpolator_dsp
from
lisainstrument.shift_inversion_numpy
import
fixed_point_iter
from
lisainstrument.shift_inversion_numpy
import
fixed_point_iter
...
@@ -145,3 +146,23 @@ def make_shift_inverse_lagrange_dask(
...
@@ -145,3 +146,23 @@ def make_shift_inverse_lagrange_dask(
"""
"""
interp
=
make_regular_interpolator_lagrange
(
order
)
interp
=
make_regular_interpolator_lagrange
(
order
)
return
ShiftInverseDask
(
max_abs_shift
,
interp
,
max_iter
,
tolerance
)
return
ShiftInverseDask
(
max_abs_shift
,
interp
,
max_iter
,
tolerance
)
def
make_shift_inverse_dsp_dask
(
order
:
int
,
max_abs_shift
:
float
,
max_iter
:
int
,
tolerance
:
float
,
)
->
ShiftInverseDask
:
"""
Set up ShiftInverseDask instance using dsp.timeshift as interpolation method.
Arguments:
order: Order of the Lagrange polynomials
max_abs_shift: Upper limit for absolute difference between coordinate frames w.r.t index space
max_iter: Maximum iterations before fail
tolerance: Maximum absolute error of result
Returns:
Inversion function of type ShiftInverseNumpy
"""
interp
=
make_regular_interpolator_dsp
(
order
)
return
ShiftInverseDask
(
max_abs_shift
,
interp
,
max_iter
,
tolerance
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment