Ticket #4037 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Investigate if loading of Muon log data can be improved

Reported by: Anders Markvardsen Owned by: Karl Palmen
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description

For example, in LoadMuonNexus2 investigate if we can swap LoadMuonNexus2::loadLogs with equivalent code in LoadNexusLogs. Also, noted that there is a class LoadMuonLog, which appears from its description to possible do the same job as LoadNexusLogs.

This ticket is to investigate the code of LoadNexusLogs, LoadMuonLog and LoadMuonNexus/LoadMuonNexus2 to see if there is dublication of code which respect to the loading of log data.

Change History

comment:1 Changed 9 years ago by Anders Markvardsen

  • Status changed from new to assigned
  • Owner changed from Anders Markvardsen to Karl Palmen

comment:2 Changed 9 years ago by Anders Markvardsen

  • Priority changed from minor to major

comment:3 Changed 9 years ago by Karl Palmen

  • Status changed from assigned to accepted

comment:4 Changed 9 years ago by Karl Palmen

I've investigated the possibility of using the LoadNexusLogs algorithm to do the work of the LoadMuonLog algorithm.

Firstly, LoadNexusLogs uses the new Nexus interface while LoadMuonLog uses the old nexus interface, so it is not advisable to use code from LoadMuonLog in LoadNexusLog without first converting it to use the new Nexus interface.

I've found that the logs have a different structure in the muon Nexus files to the neutron Nexus files. The neutron nexus logs are nested one level deeper then the muon logs and have components "time" and "value", while the muon logs has "name", "time" and "values". Furthermore, the neutron Nexus "time" has an attribute "start", which is the start time.

This attribute "start" has made it very hard to adapt LoadNexusLog to load muon logs (which don't have such a "start") and it turns out about 60 lines of code from LoadMuonLog would need to be converted to use the new Nexus interface and copied into LoadNexusLogs.

This suggests that this would not be worthwhile doing, until we change all the loadNexus code to use the new interface.

comment:5 Changed 9 years ago by Karl Palmen

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

Investigation completed.

comment:6 Changed 9 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester set to Anders Markvardsen

comment:7 Changed 9 years ago by Anders Markvardsen

  • Status changed from verifying to closed

Yes investigation complet. It is worth keeping this investigation in mind when we have an code cleanup iteration in the future

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4884

Note: See TracTickets for help on using tickets.