bmorris3 / shone

Radiative transfer in JAX
https://shone.readthedocs.io/
MIT License
4 stars 5 forks source link

Method to bin opacity in wavelength before interpolation #21

Closed bmorris3 closed 4 months ago

bmorris3 commented 4 months ago

When computing emission spectra, we need to crop opacity grids to the wavelength, temperature, and pressure bounds of the calculation, and bin the remaining opacities in wavelength to the output wavelength grid before compiling the opacity interpolators. This PR adds a method for doing that.

Blocks #19.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 11.11111% with 16 lines in your changes missing coverage. Please review.

Project coverage is 49.17%. Comparing base (4489281) to head (712cd5f). Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
shone/opacity/io.py 11.76% 15 Missing :warning:
shone/chemistry/fastchem.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #21 +/- ## ========================================== - Coverage 50.00% 49.17% -0.83% ========================================== Files 14 14 Lines 768 785 +17 ========================================== + Hits 384 386 +2 - Misses 384 399 +15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.