Skip to content

Commit

Permalink
[BC] freqs is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-t committed Jun 1, 2022
1 parent f05717d commit 9c804ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SciDataTool/Functions/fft_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,12 @@ def comp_ifftn(values, axes_requ_list, is_real=True, axes_list=[]):
)
if "period" in axis_obj.symmetries:
if axis.name != "time":
freqs = freqs * axis_obj.symmetries["period"]
freqs = [f * axis_obj.symmetries["period"] for f in freqs]
elif "antiperiod" in axis_obj.symmetries:
if axis.name != "time":
freqs = freqs * axis_obj.symmetries["antiperiod"] / 2
freqs = [
f * axis_obj.symmetries["antiperiod"] / 2 for f in freqs
]
# If already one non uniform axis, use NUDFT
if (
axes_dict_non_uniform
Expand Down

0 comments on commit 9c804ca

Please sign in to comment.