You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The blackbody_wn_rad2temp function is currently raising runtime warning when encountering divide by zero, which is not the same behavior as other functions, e.g. the planck function.
Expected Output
No warning is raised when encountering divide by zero.
Actual Result, Traceback if applicable
RuntimeWarning: divide by zero encountered in divide
return PLANCK_C1 * wavenumber / np.log((PLANCK_C2 * wavenumber**3) / radiance + 1.0)
Versions of Python, package at hand and relevant dependencies
Python 3.10, pyspectral 0.13.5
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered:
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
The blackbody_wn_rad2temp function is currently raising runtime warning when encountering divide by zero, which is not the same behavior as other functions, e.g. the planck function.
Expected Output
No warning is raised when encountering divide by zero.
Actual Result, Traceback if applicable
RuntimeWarning: divide by zero encountered in divide
return PLANCK_C1 * wavenumber / np.log((PLANCK_C2 * wavenumber**3) / radiance + 1.0)
Versions of Python, package at hand and relevant dependencies
Python 3.10, pyspectral 0.13.5
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered: