Ticket #6974 (assigned)

Opened 7 years ago

Last modified 5 years ago

Load seperate period good frame values from the Beamlog logs

Reported by: Nick Draper Owned by: Raquel Alvarez Banos
Priority: critical Milestone: Release 3.5
Component: Muon Keywords:
Cc: jamie.peck@… Blocked By: #8335
Blocking: Tester:

Description (last modified by Arturs Bekasovs) (diff)

There is more detailed beamlog information in the nexus files that stores the beamlog data for good frames by period so we can split them out by the period they were recorded in. Otherwise at present the goodfrm log is wron as is it a single value which is the sm of all of the periods.

Look into how common this log structure is? Common across muon insts? or all ISIS insts.

Good file as an example:
isis\inst$\NDXHIFI\Instrument\data\cycle_12_5\HIFI00050132.nxs

Then we need to consider how to make use of this.

From James Lord:

With ISIS Muon data (and probably neutrons), in the Nexus file header each Period has its own number of Good Frames collected during a run. When a multi-period run is loaded into Mantid it appears as a Workspace Group, in which each Workspace has "goodfrm" set to the total good frames in the whole run. It would be better to put that individual period's good frames instead, so that dead time and other corrections automatically work as they do for non-period data.

For much of our data we have 2 periods with equal numbers of frames each so "goodfrm" is wrong by a factor 2, but we can't rely on a fixed factor as it is easy enough (and often scientifically useful) to set up different numbers of frames per period, and perhaps more than 2 periods. With externally controlled period switching it may not be possible to predict the ratio in advance.

Change History

comment:1 Changed 7 years ago by Nick Draper

More from James

Now I look through older data, perhaps run 23391 (for example) may be better. This is real muon data from an RF experiment.
That's at \\isis\inst$\NDXHIFI\Instrument\data\cycle_11_2\HIFI00023391.nxs and has 17321 frames in each of 2 periods. Unfortunately the good frames are equal (as intended) so maybe not too good for thorough testing?

Or do you have any muon period data files already in the example data collection used for the Mantid automated tests?

We do have some nxs_v2 files but not for 50132, and that for 23391 fails to load in Mantid. Another example with real data might be 47745, from cycle 12_5, that run's .nxs_v2 also fails to load in Mantid while the plain .nxs is OK.

comment:2 Changed 7 years ago by Anders Markvardsen

  • Priority changed from major to critical

Procedure to fix

  1. read in number of good frames for each period and store in individual matrix workspaces

In addition in bottom of the Home tab in the Information part write text like:

Data collected at 'n' periods and the number of good frames for each period

comment:3 Changed 7 years ago by Nick Draper

Talk to Owen about this he may have some code you can use, he had to do something very similar for the neutron nexus files recently.

comment:4 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:5 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.6 to Backlog

Moved to the Backlog after R2.6

comment:6 Changed 7 years ago by Anders Markvardsen

  • Owner changed from Anders Markvardsen to Arturs Bekasovs
  • Component changed from Framework to Muon
  • Description modified (diff)

comment:7 Changed 7 years ago by Arturs Bekasovs

  • Description modified (diff)

Difficult to read like that.

comment:7 Changed 7 years ago by Arturs Bekasovs

  • Description modified (diff)

Difficult to read like that.

comment:8 Changed 7 years ago by Arturs Bekasovs

  • Milestone changed from Backlog to Release 3.1

comment:9 Changed 7 years ago by Arturs Bekasovs

  • Blocked By 8335 added

First of all, need to investigate why Muon Nexus v2 files fail to load in Mantid for those runs outlined by James Lord:

HIFI00023391.nxs_v2, HIFI00047745.nxs_v2

Ticket for that: #8335

comment:10 Changed 7 years ago by Arturs Bekasovs

  • Summary changed from Muon: Load seperate period good frame values from the Beamlog logs to [Muon] Load seperate period good frame values from the Beamlog logs

comment:11 Changed 7 years ago by Arturs Bekasovs

  • Milestone changed from Release 3.1 to Backlog

Wouldn't want to start before structure of the Muon Nexus file is sorted out.

comment:12 Changed 7 years ago by Arturs Bekasovs

  • Summary changed from [Muon] Load seperate period good frame values from the Beamlog logs to Load seperate period good frame values from the Beamlog logs

comment:13 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:14 Changed 7 years ago by Arturs Bekasovs

  • Priority changed from critical to minor

comment:15 Changed 6 years ago by Anders Markvardsen

  • Owner changed from Arturs Bekasovs to Anders Markvardsen

comment:16 Changed 6 years ago by Anders Markvardsen

  • Owner changed from Anders Markvardsen to Raquel Alvarez Banos

comment:17 Changed 6 years ago by Raquel Alvarez Banos

  • Priority changed from minor to critical

comment:18 Changed 6 years ago by Raquel Alvarez Banos

  • Cc jamie.peck@… added

comment:19 Changed 6 years ago by Raquel Alvarez Banos

  • Milestone changed from Backlog to Release 3.4

comment:20 Changed 5 years ago by Raquel Alvarez Banos

  • Milestone changed from Release 3.4 to Release 3.5

comment:21 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7820

Note: See TracTickets for help on using tickets.