This adds constituent ordering options to solve. Closes #91.
I'm not sure about the strings accepted by the new kwarg, "order_constit"; it might be better to use "PE" in place of "energy" to match the use of that abbreviation elsewhere. Apart from that, I think this is ready for use, or close to it.
Update: I changed the name to "PE". Now there are arrays "PE" and "SNR" alongside the calculated amp, phase, etc. arrays in the structure returned by solve, and the corresponding sorting options have the same names (now upper case).
This adds constituent ordering options to
solve
. Closes #91.I'm not sure about the strings accepted by the new kwarg, "order_constit"; it might be better to use "PE" in place of "energy" to match the use of that abbreviation elsewhere. Apart from that, I think this is ready for use, or close to it.
Update: I changed the name to "PE". Now there are arrays "PE" and "SNR" alongside the calculated amp, phase, etc. arrays in the structure returned by
solve
, and the corresponding sorting options have the same names (now upper case).