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
b353da96
Commit
b353da96
authored
3 months ago
by
Wolfgang Kastaun
Browse files
Options
Downloads
Patches
Plain Diff
Fix error in docstrings (wrong shift sign definition)
parent
7d1014df
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lisainstrument/dynamic_delay_dask.py
+3
-3
3 additions, 3 deletions
lisainstrument/dynamic_delay_dask.py
lisainstrument/dynamic_delay_numpy.py
+5
-3
5 additions, 3 deletions
lisainstrument/dynamic_delay_numpy.py
with
8 additions
and
6 deletions
lisainstrument/dynamic_delay_dask.py
+
3
−
3
View file @
b353da96
...
...
@@ -29,7 +29,7 @@ class DynamicShiftDask:
This allows to interpolate samples in a dask array to locations specified
by a shift given by another dask array of same size. The shift is specified in
units of the array index, i.e. there is no separate coordinate array.
A
nega
tive shift refers to values left of a given sample,
posi
tive shifts
A
posi
tive shift refers to values left of a given sample,
nega
tive shifts
to values on the right.
The boundary treatment can be specified for each boundary in terms of
...
...
@@ -80,8 +80,8 @@ class DynamicShiftDask:
The shift and sample arrays need to have the same size, and each shift provides
the interpolation location relative to the sample with the same index.
Shifts are floating point values.A shift of +1 refers to the sample on the
righ
t,
-1 the sample on the
lef
t, etc. All arrays have to be 1D.
Shifts are floating point values.
A shift of +1 refers to the sample on the
lef
t,
-1 the sample on the
righ
t, etc. All arrays have to be 1D.
Arguments:
samples: 1D dask array with data samples
...
...
This diff is collapsed.
Click to expand it.
lisainstrument/dynamic_delay_numpy.py
+
5
−
3
View file @
b353da96
...
...
@@ -281,6 +281,8 @@ class RegularInterpolator:
"""
User-facing class for interpolation of regularly spaced data
The interpolation method is not fixed but given by an interpolation engine.
The main purpose of this class is to provide the parameter checks common
to all interpolation methods.
"""
def
__init__
(
self
,
core
:
RegularInterpCore
):
...
...
@@ -446,7 +448,7 @@ class DynamicShiftNumpy:
This allows to interpolate samples in a numpy array to locations specified
by a shift given by another numpy array of same size. The shift is specified in
units of the array index, i.e. there is no separate coordinate array.
A
nega
tive shift refers to values left of a given sample,
posi
tive shifts
A
posi
tive shift refers to values left of a given sample,
nega
tive shifts
to values on the right.
The boundary treatment can be specified for each boundary in terms of
...
...
@@ -496,8 +498,8 @@ class DynamicShiftNumpy:
The shift and sample arrays need to have the same size, and each shift provides
the interpolation location relative to the sample with the same index.
Shifts are floating point values.A shift of +1 refers to the sample on the
righ
t,
-1 the sample on the
lef
t, etc. All arrays have to be 1D.
Shifts are floating point values.A shift of +1 refers to the sample on the
lef
t,
-1 the sample on the
righ
t, etc. All arrays have to be 1D.
Arguments:
samples: 1D numpy array with data samples
...
...
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