-
Notifications
You must be signed in to change notification settings - Fork 174
Description
hey, I have been using this library for some time now. I am very grateful to the author for developing this library.
Recently, when I was using this library to calculate scpdsi, I encountered this problem:
Traceback (most recent call last):
File "test.py", line 127, in
scpdsi_feedback_1[:,i,j,:] = indices.scpdsi(precip_time_series=PREC_feedback.values[i,j,:],
/climate_indices/palmer.py", line 525, in _cafec_coefficients
alpha = _cafec_coeff_ufunc(ET_bar, PET_bar)
File "/.local/lib/python3.8/site-packages/numba/np/ufunc/dufunc.py", line 190, in call
return super().call(*args, **kws)
numpy.core._exceptions.UFuncTypeError: ufunc '_cafec_coeff_ufunc' did not contain a loop with signature matching types (<class 'numpy.dtype[float64]'>, <class 'numpy.dtype[float64]'>) -> None
I am using a version prior to 2.0.0. It seems that the subsequent versions do not directly output the scpdsi?
I` tested versions 1.0.10 to 1.0.13 and found that the same problem occurred in all of them. And even though I attempted to adjust the format of the input parameters, it still didn't solve the issue (float 32 or float 64).