Skip to content

Commit

Permalink
Add resultant kwarg so intensity and tune test are more flexible (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden authored and untzag committed Nov 8, 2019
1 parent c71ff6a commit 474f1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attune/workup/_intensity.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def _intensity(data, channel_name, tune_points, *, spline=True, **spline_kwargs):
data.moment(axis=1, channel=channel_name, moment=1)
data.moment(axis=1, channel=channel_name, moment=1, resultant=data.axes[0].shape)
offsets = data[f"{channel_name}_1_moment_1"].points

if spline:
Expand Down
2 changes: 1 addition & 1 deletion attune/workup/_tune_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def _offsets(data, channel_name, tune_points, *, spline=True, **spline_kwargs):
data.moment(axis=1, channel=channel_name, moment=1)
data.moment(axis=1, channel=channel_name, moment=1, resultant=data.axes[0].shape)
offsets = data[f"{channel_name}_1_moment_1"].points

if spline:
Expand Down

0 comments on commit 474f1e7

Please sign in to comment.