The interpolation from incident to measured flux is currently done with an on-the-spot numpy interpolation:
|
obj._hdu.data = np.interp(obj._hdu.data, incident, measured) |
It would be useful for post-readout analysis and introspection to use an interpolator object to store the interpolation function in the effect and make it accessible from the outside. A prime candidate would be to use
scipy.interpolate.make_interp_spline, which returns a
BSpline object (aka the interpolator). Should be fairly straightforward.
The interpolation from
incidenttomeasuredflux is currently done with an on-the-spot numpy interpolation:ScopeSim/scopesim/effects/electronic/electrons.py
Line 78 in e386ea5
It would be useful for post-readout analysis and introspection to use an interpolator object to store the interpolation function in the effect and make it accessible from the outside. A prime candidate would be to use
scipy.interpolate.make_interp_spline, which returns aBSplineobject (aka the interpolator). Should be fairly straightforward.