gbrammer / grizli

Grizli: The "Grism redshift and line" analysis software
MIT License
64 stars 50 forks source link

Import polyfit/val from numpy #207

Closed TheSkyentist closed 4 months ago

TheSkyentist commented 4 months ago

Import polyval from numpy instead of scipy to fix mitigate issues.

gbrammer commented 4 months ago

I think it would be safest to

from numpy.polynomial.polynomial import polyfit, polyval

rather than from the general numpy namespace with from numpy import polyfit, polyval.

TheSkyentist commented 4 months ago

Good idea, I've committed the requested changes.

gbrammer commented 4 months ago

Thanks!