Ticket #8892 (closed: invalid)

Opened 7 years ago

Last modified 5 years ago

Log correction script

Reported by: Keith Brown Owned by: Owen Arnold
Priority: major Milestone: Release 3.2
Component: Reflectometry Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description

The reflectometry instruments don't use standard names for logs across instruments and it can cause problems in quick.

Generate a utility script which will create copies of required logs under a correct name from a supplied workspace.

Change History

comment:1 Changed 7 years ago by Keith Brown

  • Status changed from new to inprogress

Here is the script. It'll probably end up on the script repository:

from mantid.simpleapi import *

def correct_logs(ws):
    ws_log_names = mtd[ws].getRun().keys()
    if 'stheta' in ws_log_names and not 'theta' in ws_log_names:
        RenameLog(Workspace=ws,OriginalLogName='stheta',NewLogName='theta')
    else:
        print "Nothing to correct."

comment:2 Changed 7 years ago by Owen Arnold

  • Status changed from inprogress to verify
  • Owner changed from Keith Brown to Owen Arnold
  • Resolution set to invalid

This is no longer a valid piece of work according to Max Skoda. The log names will be synchronised from the data collection side. I think that this is a much better solution anyway.

comment:3 Changed 6 years ago by Michael Reuter

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

comment:4 Changed 6 years ago by Michael Reuter

  • Status changed from verifying to closed

I agree.

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9736

Note: See TracTickets for help on using tickets.