Ticket #8673 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Fix problems with SortXAxis

Reported by: Owen Arnold Owned by: Owen Arnold
Priority: major Milestone: Release 3.1
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Peterson

Description

SortXAxis doesn't work for Histogram workspaces, but it could be made to work with them by taking the start of each x interval as the index to sort the y and e components by. The existing behaviour for point data should remain the same.

Change History

comment:1 Changed 7 years ago by Owen Arnold

  • Status changed from new to inprogress

refs #8673. Sort histogram workspaces.

Changeset: 62947a04559923a52940cc1c60b0ed6eba8f6188

comment:2 Changed 7 years ago by Owen Arnold

refs #8673. Test not required.

Changeset: 16fdc6313e811521b866535f5e5791afd8657e99

comment:3 Changed 7 years ago by Owen Arnold

Tester: The following shows this working:

testws = CreateWorkspace(DataX=[3,2,1,0], DataY=[1,2,3]) # Create a histogram workspace
testws = SortXAxis(testws)
plotSpectrum(testws, 0)

You should have a spectrum plotted with a straight line sloping down from 3 to 1 on the Y axis.

comment:4 Changed 7 years ago by Owen Arnold

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:5 Changed 7 years ago by Peter Peterson

  • Status changed from verify to verifying
  • Tester set to Peter Peterson

comment:6 Changed 7 years ago by Peter Peterson

  • Status changed from verifying to closed

I didn't turn off fast-forwarding so it didn't create a merge commit. This is done.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9517

Note: See TracTickets for help on using tickets.