Ticket #1354 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

LoadNexus does not populate the title field of the workspace

Reported by: Martyn Gigg Owned by: Steve Williams
Priority: blocker Milestone: Iteration 24
Component: Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Peterson

Description

Example:

nxs_wkspace = LoadNexus(Filename="C:/Mantid/Test/Nexus/LOQ49886.nxs",OutputWorkspace="w").workspace()
raw_wkspace = LoadRaw(Filename="C:/Mantid/Test/Data/LOQ48094.raw", OutputWorkspace="w1").workspace()

print "Raw title '%s'" % raw_wkspace.getTitle()
print "Nexus title '%s'" % nxs_wkspace.getTitle()

Change History

comment:1 Changed 10 years ago by Martyn Gigg

  • type changed from enhancement to defect

comment:2 Changed 10 years ago by Steve Williams

  • Owner set to Steve Williams
  • Priority changed from major to blocker
  • Status changed from new to assigned

Needed for ticket #1264

comment:3 Changed 10 years ago by Steve Williams

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [5104]) All Load*Nexus algorithms and LoadRaw now read the run number and store it in the sample logs of all the matrix workspaces they create. re #1264 fixes #1354

comment:4 Changed 10 years ago by Steve Williams

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:5 Changed 10 years ago by Steve Williams

  • Status changed from reopened to testing
  • Resolution set to fixed

comment:6 Changed 10 years ago by Nick Draper

  • Status changed from testing to verify

Moved to verify state

comment:7 Changed 10 years ago by Martyn Gigg

  • Status changed from verify to verifying
  • Tester set to Martyn Gigg

comment:8 Changed 10 years ago by Martyn Gigg

  • Status changed from verifying to reopened
  • Resolution fixed deleted

LoadNexusProcessed does not populate the title field correctly. Run the following script to see this.

raw_wkspace = LoadRaw(Filename="//isis/inst$/ndxloq/instrument/data/cycle_09_1/LOQ49886.raw", OutputWorkspace="loq").workspace()
print "Raw title '%s'" % raw_wkspace.getTitle()
saver = SaveNexusProcessed('loq','loq49886-proc.nxs')
filepath = saver.getPropertyValue("Filename")
nxs_proc_wkspace = LoadNexusProcessed(filepath, 'loq').workspace()
print "Processed Nexus title is '%s'" % nxs_proc_wkspace.getTitle()

It is a problem with LoadNexusProcessed as the HDFView program shows the correct title. A suggested fix is to populate the title around line 200 of LoadNexusProcessed.

comment:9 Changed 10 years ago by Steve Williams

(In [5948]) Load the title from Nexus files into the workspace re #1354

comment:10 Changed 10 years ago by Steve Williams

  • Status changed from reopened to accepted

comment:11 Changed 10 years ago by Steve Williams

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

comment:12 Changed 10 years ago by Peter Peterson

  • Status changed from verify to verifying
  • Tester changed from Martyn Gigg to Peter Peterson

comment:13 Changed 10 years ago by Peter Peterson

  • Status changed from verifying to closed

The embedded test above worked with LOQ48097.raw

comment:14 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2201

Note: See TracTickets for help on using tickets.