Skip to content

Commit

Permalink
[WP] Correcting bug in fft slicing and interpolating
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-t committed May 13, 2020
1 parent 7e4ac15 commit bb3ab37
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions SciDataTool/Methods/DataTime/get_magnitude_along.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,15 @@ def get_magnitude_along(self, *args, unit="SI", is_norm=False, axis_data=[]):
index = 0
for axis_requested in axes_list:
for axis in self.axes:
if (
axis.name == axis_requested[0]
and axis_requested[3] == "values"
and axis_requested[2] == "interval"
):
values = apply_along_axis(
get_interpolation,
index,
values,
axis_requested[5],
axis_requested[4],
)
if axis.name == axis_requested[0]:
if axis_requested[3] == "values" and axis_requested[2] == "interval":
values = apply_along_axis(
get_interpolation,
index,
values,
axis_requested[5],
axis_requested[4],
)
index += 1
break
# Convert into right unit
Expand Down

0 comments on commit bb3ab37

Please sign in to comment.