-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hello, I'm getting problems while running "other_features.ipynb" tutorial.
My python version is 3.7 and I'm working with Windows11.
I have installed stella by means of git clone.
The error happens when I run "mProt.run_LS()". I haven't modified any line of this tutorial.
I'll be very greatful if someone can help me to understand why I'm having this issue.
Here is the full error trace that I'm getting:
TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_6684\355224878.py in
----> 1 mProt.run_LS()
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\stella-0.2.0rc2-py3.7.egg\stella\rotations.py in run_LS(self, minf, maxf, spp)
222 # SPLITS BY ORBIT
223 diff = np.diff(time)
--> 224 brk = np.where(diff >= np.nanmedian(diff)+14*np.nanstd(diff))[0]
225
226 if len(brk) > 1:
<array_function internals> in nanmedian(*args, **kwargs)
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\numpy\lib\nanfunctions.py in nanmedian(a, axis, out, overwrite_input, keepdims)
1112
1113 r, k = function_base._ureduce(a, func=_nanmedian, axis=axis, out=out,
-> 1114 overwrite_input=overwrite_input)
1115 if keepdims and keepdims is not np._NoValue:
1116 return r.reshape(k)
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\numpy\lib\function_base.py in _ureduce(a, func, **kwargs)
3513 keepdim = (1,) * a.ndim
3514
-> 3515 r = func(a, **kwargs)
3516 return r, keepdim
3517
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\numpy\lib\nanfunctions.py in _nanmedian(a, axis, out, overwrite_input)
981 part = a.ravel()
982 if out is None:
--> 983 return _nanmedian1d(part, overwrite_input)
984 else:
985 out[...] = _nanmedian1d(part, overwrite_input)
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\numpy\lib\nanfunctions.py in _nanmedian1d(arr1d, overwrite_input)
964 """
965 arr1d, overwrite_input = _remove_nan_1d(arr1d,
--> 966 overwrite_input=overwrite_input)
967 if arr1d.size == 0:
968 return np.nan
c:\users\dani\appdata\local\programs\python\python37\lib\site-packages\numpy\lib\nanfunctions.py in _remove_nan_1d(arr1d, overwrite_input)
162 """
163
--> 164 c = np.isnan(arr1d)
165 s = np.nonzero(c)[0]
166 if s.size == arr1d.size:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''