Skip to content

Commit

Permalink
refs #9135 Modified LoadRaw to produce low case monitor workspace name
Browse files Browse the repository at this point in the history
when monitors are loaded separately from the main workspace
  • Loading branch information
abuts committed Apr 8, 2014
1 parent 3293b2f commit fc9b6c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadRaw3.cpp
Expand Up @@ -228,7 +228,7 @@ namespace Mantid
if(bseparateMonitors && normalwsSpecs == 0)
{
// Ensure we fill the correct group as if we are only loading monitors then we essentially want normal behavior
// with no extra _Monitors workspace
// with no extra _monitors workspace
ws_grp = monitorws_grp;
}

Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadRawHelper.cpp
Expand Up @@ -266,7 +266,7 @@ namespace Mantid
// otherwise set the workspace as "OutputWorkspace"
if (nwsSpecs> 0)
{
std::string monitorwsName = wsName + "_Monitors";
std::string monitorwsName = wsName + "_monitors";
declareProperty(new WorkspaceProperty<Workspace> ("MonitorWorkspace", monitorwsName,
Direction::Output));
setWorkspaceProperty("MonitorWorkspace", title, mongrp_sptr, monws_sptr,numberOfPeriods, true);
Expand Down Expand Up @@ -318,7 +318,7 @@ namespace Mantid
suffix << (period + 1);
if (bmonitors)
{
wsName = localWSName + "_Monitors" + "_" + suffix.str();
wsName = localWSName + "_monitors" + "_" + suffix.str();
outputWorkspace = "MonitorWorkspace";
}
else
Expand Down
3 changes: 0 additions & 3 deletions Code/Mantid/scripts/Inelastic/CommonFunctions.py
Expand Up @@ -135,13 +135,10 @@ def load_run(inst_name, run_number, calibration=None, force=False):
wrong_monitors_name = False;
if ext.endswith("raw"):
args['LoadMonitors']='Separate'
wrong_monitors_name = True
elif ext.endswith('nxs'):
args['LoadMonitors'] = '1'

loaded_ws = Load(Filename=filename, OutputWorkspace=output_name,**args)
if wrong_monitors_name:
RenameWorkspace(InputWorkspace=output_name+'_Monitors',OutputWorkspace=output_name+'_monitors');
if isinstance(loaded_ws,tuple) and len(loaded_ws)>1:
mon_ws = loaded_ws[1];
loaded_ws=loaded_ws[0];
Expand Down

0 comments on commit fc9b6c6

Please sign in to comment.