From 044b519b3fbfbec52722e317553673f2f8e5e082 Mon Sep 17 00:00:00 2001 From: Daniel Kohler <11864045+ddkohler@users.noreply.github.com> Date: Mon, 29 Jan 2024 09:57:42 -0600 Subject: [PATCH 1/2] Update _data.py --- WrightTools/data/_data.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py index 86d496d3..9e3087a7 100644 --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -1201,10 +1201,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 From a0b684c41dafb3651cefbb4cb7423e5d8eb84655 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:41:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- WrightTools/data/_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py index 01ad81c4..6bc0e22d 100644 --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -1265,11 +1265,11 @@ def map_variable( ) -> "Data": """ 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`). + Non-mapped variables are kept in the data object only if they are + orthogonal to the mapped variable (see `kit.orthogonal`). Parameters ----------