Ticket #8892 (closed: invalid)
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: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.
Note: See
TracTickets for help on using
tickets.

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."