Ticket #6826 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Indirect C2E doesn't work for ISIS NeXus files

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.5
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Gesner Passos

Description

The script below demonstrates the problem. Running with the nexus file produces a problem in grouping. If you change .nxs to .raw in the filename then it works.

import mantid
mantid.config["default.facility"]="ISIS"

filename="IRIS00057874.nxs"

import inelastic_indirect_reducer as iir
reducer = iir.IndirectReducer()
reducer.set_instrument_name("IRIS")
reducer.set_detector_range(2,52)
reducer.set_parameter_file("IRIS_graphite_002_Parameters.xml")
reducer.append_data_file(filename)

import IndirectEnergyConversion as ind
group_file = "grouping.dat"
mapfile = ind.createMappingFile(group_file, ngroup=10, 
                                nspec=((53-3+1)/10), first=3)
reducer.set_grouping_policy(mapfile)
reducer.reduce()

Change History

comment:1 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:3 Changed 8 years ago by Martyn Gigg

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

Branch: feature/6826_indirect_c2e_nexus

Tester: Someone at ISIS will have to do this as the files are on the archive here.<br> Use the above script and run the reduction using both the raw & nexus files (you'll have to rename the workspace after the first run so we can keep it around). When you have both worksapces make sure they match using CheckWorkspacesMatch.

comment:4 Changed 8 years ago by Gesner Passos

  • Status changed from verify to verifying
  • Tester set to Gesner Passos

comment:5 Changed 8 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:6 Changed 8 years ago by Gesner Passos

  • Status changed from verifying to closed

Work nice for both files. A not direct related ticket was opened #6831 to deal with exceptions related to the default output directory.

comment:7 Changed 7 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:8 Changed 7 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:9 Changed 7 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:10 Changed 7 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:11 Changed 7 years ago by Martyn Gigg

Use LoadNexusMonitors for event files only in indirect C2E. Refs #6826

Changeset: bb4feea4989486d882820690c548c5524f736eca

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7672

Note: See TracTickets for help on using tickets.