Skip to content

Commit

Permalink
Merge pull request #1168 from wright-group/issue-1102-map_variable
Browse files Browse the repository at this point in the history
map_variable docstring
  • Loading branch information
kameyer226 authored Mar 20, 2024
2 parents 4147cc6 + a0b684c commit 70550ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WrightTools/data/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,10 +1268,14 @@ def level(self, channel, axis, npts, *, verbose=True):
def map_variable(
self, variable, points, input_units="same", *, name=None, parent=None, verbose=True
) -> "Data":
"""Map points of an axis to new points using linear interpolation.
"""
Map points of an axis to new points using linear interpolation.
Out-of-bounds points are written nan.
Non-mapped variables are kept in the data object only if they are
orthogonal to the mapped variable (see `kit.orthogonal`).
Parameters
----------
variable : string
Expand Down

0 comments on commit 70550ff

Please sign in to comment.