You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run example_modal_decomposition_data.py, I get the following error:
/Users/rlehe/Documents/codes/lasy/lasy/utils/mode_decomposition.py:140: ComplexWarning: Casting complex values to real discards the imaginary part
coeffTest[i] = np.sum(profile * field)
Estimated w0 = 13.20 microns
/Users/rlehe/Documents/codes/lasy/lasy/utils/mode_decomposition.py:91: ComplexWarning: Casting complex values to real discards the imaginary part
if math.isnan(coef):
Traceback (most recent call last):
File "/Users/rlehe/Documents/codes/lasy/examples/example_modal_decomposition_data.py", line 59, in <module>
reconstructedProfile = modeCoeffs[
^^^^^^^^^^^
File "/Users/rlehe/Documents/codes/lasy/lasy/profiles/profile.py", line 67, in __rmul__
return ScaledProfile(self, factor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rlehe/Documents/codes/lasy/lasy/profiles/profile.py", line 128, in __init__
assert isinstance(factor, (int, float)), "The factor must be a number."
AssertionError: The factor must be a number.
The text was updated successfully, but these errors were encountered:
When trying to run
example_modal_decomposition_data.py
, I get the following error:The text was updated successfully, but these errors were encountered: