TypeError: can_cast() does not support Python ints, floats, and complex because the result used to depend on the value.`
I get this error using emd 0.6.0
TypeError: can_cast() does not support Python ints, floats, and complex because the result used to depend on the value.
This change was part of adopting NEP 50, we may explicitly allow them again in the future.
the wrap_phase function in the imftools.py file is causing the error.
the problematic line can be replaced by this one:
if (ncycles < 1) or (not isinstance(ncycles, (int, np.integer))):