Follow-up for #54 (comment)
Pros:
- Part of SciML ecosystem
- Highly flexible. Would be useful to have if future dust laws require a range of interpolation schemes
Cons:
- Minor: x, y args are "flipped" relative to other interpolation packages. I guess to keep their interface consistent with the rest of the SciML ecosystem
- Currently failing on one of our Measurements.jl tests, shown below. Could just be holding it wrong
|
# uncertainties |
|
noise = rand(length(wave)) .* 0.01 |
|
wave_unc = wave .± noise |
|
reddening = map(w -> @uncertain(law(w)), wave_unc) |
|
@test Measurements.value.(reddening) ≈ ref_values[rv] rtol = 1e-3 |
Follow-up for #54 (comment)
Pros:
Cons:
DustExtinction.jl/test/color_laws.jl
Lines 339 to 343 in af42144