Ticket #9985 (closed: fixed)
IDA: Use SortXAxis in MSDFit and ElWin
Reported by: | Samuel Jackson | Owned by: | Dan Nixon |
---|---|---|---|
Priority: | major | Milestone: | Release 3.3 |
Component: | Indirect Inelastic | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Michael Reuter |
Description (last modified by Samuel Jackson) (diff)
There are a couple of places where we are manually flipping the x axis so it is in increasing order. I think we can probably replace those bits of code with the SortXAxis algorithm
For example, line ~299 in IndirectDataAnalysis.py:
if(datTx[0] > datTx[-1]): # if so reverse data to follow natural ordering datTx = datTx[::-1] datTy = datTy[::-1] datTe = datTe[::-1]
Change History
comment:1 Changed 6 years ago by Samuel Jackson
- Description modified (diff)
- Summary changed from IDA: Use SortX in MSDFit and ElWin to IDA: Use SortXAxis in MSDFit and ElWin
comment:6 Changed 6 years ago by Dan Nixon
- Status changed from inprogress to verify
- Resolution set to fixed
I only managed to find the one instance of this in the inelastic scripts.
To Test:
- Ensure Indirect Data Analysis > Elwin still works as intended (usage guide here)
comment:7 Changed 6 years ago by Michael Reuter
- Status changed from verify to verifying
- Tester set to Michael Reuter
comment:8 Changed 6 years ago by Michael Reuter
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/bugfix/9985_flip_ida_arrays_with_sortxaxis'
Full changeset: 1ed18e7c514025db64e8e0d48b027ba63a11f3a5
Note: See
TracTickets for help on using
tickets.