Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Feb 5, 2024
1 parent a3fc94d commit 5ba6ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def plot_spectrum1D(pertx, perty, pertz):
# data precision
dtype = np.float64
# ratio of solenoidal to compressive components
if options.f_solenoidal is None or options.f_solenoidal is None:
if (options.f_solenoidal is None) or (options.f_solenoidal=="None"):
f_solenoidal = None
else:
f_solenoidal = min(max(float(options.f_solenoidal), 0.), 1.)
Expand Down

0 comments on commit 5ba6ba8

Please sign in to comment.