me-manu / ebltable

Python package to read in tabulated photon densities and gamma-ray opacities
BSD 3-Clause "New" or "Revised" License
12 stars 12 forks source link

New interpolator base class #5

Closed me-manu closed 1 year ago

me-manu commented 1 year ago

This pull requests features a new interpolator base class on which the EBL and tau interpolation now depend. This removes a lot of dublication in the OptDepth and EBL classes.

codecov-commenter commented 1 year ago

Codecov Report

Merging #5 (0059df4) into master (4006105) will decrease coverage by 1.07%. The diff coverage is 89.07%.

@@            Coverage Diff             @@
##           master       #5      +/-   ##
==========================================
- Coverage   88.83%   87.75%   -1.08%     
==========================================
  Files           3        4       +1     
  Lines         403      392      -11     
==========================================
- Hits          358      344      -14     
- Misses         45       48       +3     
Impacted Files Coverage Δ
ebltable/interpolate.py 85.71% <85.71%> (ø)
ebltable/tau_from_model.py 89.56% <92.85%> (+0.36%) :arrow_up:
ebltable/ebl_from_model.py 88.41% <95.34%> (-0.53%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more