guillochon / MOSFiT

Modular Open Source Fitter for Transients
http://mosfit.readthedocs.io/
MIT License
41 stars 53 forks source link

numpy.logspace error when trying to fit my own data #207

Closed nablack3 closed 1 year ago

nablack3 commented 2 years ago

I uploaded my own data and am trying to analyze it with the TDE model, however I am stuck with this numpy.logspace error: File "C:\Users\muddy\anaconda3\envs\research\Lib\site-packages\mosfit\modules\arrays\densetimes.py", line 36, in process x + self._rest_t_explosion for x in np.logspace( File "<__array_function__ internals>", line 5, in logspace TypeError: no implementation found for 'numpy.logspace' on types that implement __array_function__: [<class 'astropy.units.quantity.Quantity'>]

I tried changing logspace to geomspace, and that seems to move it forward, however I then get this error: File "C:\Users\muddy\anaconda3\envs\research\Lib\site-packages\mosfit\modules\transforms\viscous.py", line 54, in process new_lums = uniq_lums[np.searchsorted(uniq_times, IndexError: index 0 is out of bounds for axis 0 with size 0

pkgw commented 1 year ago

This seems to be the same problem as #208, which has more discussion. I'd suggest closing this report as a duplicate.