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
3d0c5073
Commit
3d0c5073
authored
1 month ago
by
Wolfgang Kastaun
Browse files
Options
Downloads
Patches
Plain Diff
just formatting
parent
dbd34209
No related branches found
No related tags found
No related merge requests found
Pipeline
#384085
failed
1 month ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisainstrument/shift_inversion_numpy.py
+4
-10
4 additions, 10 deletions
lisainstrument/shift_inversion_numpy.py
with
4 additions
and
10 deletions
lisainstrument/shift_inversion_numpy.py
+
4
−
10
View file @
3d0c5073
"""
Functions for inverting a 1D (time)coordinate transform given as numpy array
The inversion function internally requires an interpolation operator implementing the
RegularInterpolator interface, and which is provided by the user. Use
make_shift_inverse_lagrange_numpy to create an inversion operator employing Lagrange
The inversion function internally requires an interpolation operator implementing the
RegularInterpolator interface, and which is provided by the user. Use
make_shift_inverse_lagrange_numpy to create an inversion operator employing Lagrange
interpolation.
"""
from
__future__
import
annotations
# ~ from dataclasses import dataclass
# ~ from enum import Enum
from
typing
import
Final
import
numpy
as
np
# ~ from typing_extensions import assert_never
from
lisainstrument.fir_filters_numpy
import
NumpyArray1D
from
lisainstrument.regular_interpolators
import
(
RegularInterpolator
,
make_regular_interpolator_lagrange
,
# ~ make_regular_interpolator_linear,
)
class
ShiftInverseNumpy
:
# pylint: disable=too-few-public-methods
class
ShiftInverseNumpy
:
# pylint: disable=too-few-public-methods
"""
Invert coordinate transformation given as shift
"""
def
__init__
(
...
...
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