I've encountered an error when trying to run cnn.predict. The issue appears to arise from the dtype of the time array not being a format np.isnan likes. Any suggestions on how to fix this issue would be much appreciated!
The error is as follows:
TypeError Traceback (most recent call last)
in
----> 1 cnn.predict(modelname=MODELS[0],
2 times=lc.time,
3 fluxes=lc.flux,
4 errs=lc.flux_err)
5 single_pred = cnn.predictions[0]
~/anaconda3/envs/stella/lib/python3.8/site-packages/stella/neural_network.py in predict(self, modelname, times, fluxes, errs, multi_models, injected)
541 err = errs[j] + 0.0
542
--> 543 q = ( (np.isnan(time) == False) & (np.isnan(lc) == False))
544 time, lc, err = time[q], lc[q], err[q]
545
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''
Thanks,
Patrick
Hello Adına,
I've encountered an error when trying to run cnn.predict. The issue appears to arise from the dtype of the time array not being a format np.isnan likes. Any suggestions on how to fix this issue would be much appreciated! The error is as follows:
TypeError Traceback (most recent call last)