Skip to content

Commit

Permalink
fix faulty surface FT typecheck logic
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed Jul 22, 2024
1 parent ad2af66 commit 6962539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simsopt/geo/surfacerzfourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def fourier_transform_scalar(self, scalar, mpol=None, ntor=None, normalization=N
if not stellsym:
A_mnc[0, ntor] = np.sum(scalar) / (ntheta_grid * nphi_grid)
if normalization is not None:
if isinstance(normalization, float):
if not isinstance(normalization, float):
raise ValueError("normalization must be a float")
A_mns = A_mns / normalization
A_mnc = A_mnc / normalization
Expand Down

0 comments on commit 6962539

Please sign in to comment.