Closed jeroenbouwman closed 3 years ago
The latest version of astropy (4.3) the following import call on line 18 in boats.py stopped working :
from astropy.modeling.blackbody import blackbody_lambda
Could this be updated to the following:
from astropy.modeling.models import BlackBody
the usage would then be: bb_nu = BlackBody(temperature=temperature) bb_lam = BlackBody(temperature, scale=1.0 * u.erg / (u.cm * 2 u.AA u.s u.sr))
B_nu = bb_nu(wavelength) B_lam = bb_lam(wavelength)
this should also work with older versions of astropy.
Done, many thanks for this note
The latest version of astropy (4.3) the following import call on line 18 in boats.py stopped working :
from astropy.modeling.blackbody import blackbody_lambda
Could this be updated to the following:
from astropy.modeling.models import BlackBody
the usage would then be: bb_nu = BlackBody(temperature=temperature) bb_lam = BlackBody(temperature, scale=1.0 * u.erg / (u.cm * 2 u.AA u.s u.sr))
B_nu = bb_nu(wavelength) B_lam = bb_lam(wavelength)
this should also work with older versions of astropy.