Ticket #5778 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Expose number of MDevents in MDHisto to python

Reported by: Andrei Savici Owned by: Andrei Savici
Priority: major Milestone: Release 2.3
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description


Change History

comment:1 Changed 8 years ago by Andrei Savici

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Andrei Savici

Export number of MD events in MDHisto to python. Refs #5778

Changeset: 70a58691fedee829440be4ebd8cb421782c4a97a

comment:3 Changed 8 years ago by Andrei Savici

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

One way to test this ticket:

  1. Load an MDEvent workspace (I used ImportMDEventWorkspace) (MD)
  2. Use slice viewer, choose an appropriate slice, and visualize it using number of events normalization (MD_rebinned)
  3. Clone the MD_rebinned workspace using CloneMD to MD_clone
  4. In python, run the following
    w=workspace('MD_rebinned')
    cl=workspace('MD_clone')
    cl.setSignalArray(w.getSignalArray()/w.getNumEventsArray())
    

The slice for MD_rebinned with number of event normalization should look like the slice for MD_clone with no normalization

comment:4 Changed 8 years ago by Andrei Savici

Export number of MD events in MDHisto to python. Refs #5778

Changeset: 70a58691fedee829440be4ebd8cb421782c4a97a

comment:5 Changed 8 years ago by Michael Reuter

  • Status changed from verify to verifying
  • Tester set to Michael Reuter

comment:6 Changed 8 years ago by Michael Reuter

  • Status changed from verifying to closed

This looks to be working properly.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6624

Note: See TracTickets for help on using tickets.