lanl / fiducia

An open source package for DANTE signal analysis using the cubic spline unfold method.
Other
5 stars 4 forks source link

Handling for unordered knots #16

Open pmk-LANL opened 3 years ago

pmk-LANL commented 3 years ago

Sometimes knot photon energies aren't in the same order as increasing channel number and this causes the spline function to integrate backwards in certain sections. Best place to do this is probably in segmentsArr().

pmk-LANL commented 3 years ago

Unordered knots can temporarily be handled by manually changing order of list of channels input into functions.

For example

# Here channel 11 has been placed at the end because it has a high energy knot point
channels = [2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 11]