Ticket #2534 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Loading NeXuS files with some "string" log entries

Reported by: Nick Draper Owned by: Roman Tolchenov
Priority: major Milestone: Iteration 28
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description

The Muon NeXuS files contain a few log values whose values are strings - some are ones generated internally in SECI and some set up by instrument scientists. The newest SECI now also uses strings for logging "enumerated" values from the sample environment control VIs instead of small integers 0 to n.

I'm trying to looking at the (numeric) log tables by doing: in the Workspace window, Load - File select a NeXuS file. Click "Run". It loads, but with some warnings:

"In LoadMuonLog: hifi/data/hifi00015473.nxs skipping non-numeric log data"

I then right-click on the workspace that appears in the list and do "Sample logs...". The list that appears is incomplete, missing about the same number of log values as there are string logs, but the missing ones are the last in alphabetical order (or perhaps the last in the HDF file structure).

Now selecting one and doing "Import log" returns the wrong log data if it's "after" one or more of the strings ones. It's as if Mantid is making a list of log names, then separately making a list of log data tables leaving out the string ones, truncating the log name list to the same length and then matching them up again.

I've looked at MuSR (old SECI) and HiFi (old and new SECI) files so far, also loading into the workspace via the Muon Analysis window, and it seems to be consistent.

James Lord.

Full Mantid "results log":

Algorithm: Load v1
Parameters:
  Name: Filename, Value: //hifi/data/hifi00015473.nxs, Default?: No, Direction: Input
  Name: OutputWorkspace, Value: hifi00015473, Default?: No, Direction: Output
  Name: LoaderName, Value: LoadMuonNexus, Default?: No, Direction: Output
  Name: SpectrumMin, Value: 0, Default?: Yes, Direction: Input
  Name: SpectrumMax, Value: 2147483647, Default?: Yes, Direction: Input
  Name: SpectrumList, Value: , Default?: Yes, Direction: Input
  Name: AutoGroup, Value: 0, Default?: Yes, Direction: Input
  Name: EntryNumber, Value: 0, Default?: Yes, Direction: Input
  Name: MainFieldDirection, Value: Transverse, Default?: Yes, Direction: Output
  Name: TimeZero, Value: 0, Default?: Yes, Direction: Output
  Name: FirstGoodData, Value: 0, Default?: Yes, Direction: Output
Using LoadMuonNexus version 2.
Loading geometry cache from C:\MantidInstall\instrument\HIFI_Definition.vtp
Invalid argument to LoadParameter sub-algorithm
Invalid value for property Filename (string) "C:/MantidInstall/instrument//HIFI_Parameters.xml": File "HIFI_Parameters.xml" not found
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
In LoadMuonLog: //hifi/data/hifi00015473.nxs skipping non-numeric log data
Load successful, Duration 2.31 seconds

Change History

comment:1 Changed 10 years ago by Roman Tolchenov

(In [9657]) Reading string logs from muon nexus files. re #2534

comment:2 Changed 10 years ago by Roman Tolchenov

  • Status changed from new to accepted

comment:3 Changed 10 years ago by Roman Tolchenov

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

comment:4 Changed 9 years ago by Michael Whitty

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

comment:5 Changed 9 years ago by Michael Whitty

  • Status changed from verifying to closed

tested in 11101

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3381

Note: See TracTickets for help on using tickets.