Skip to content
Snippets Groups Projects
Commit 46c9c07e authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #5843 fix path of idf

parent 458d9fcc
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ from mantidsimple import * ...@@ -16,6 +16,7 @@ from mantidsimple import *
import os import os
import datetime import datetime
from time import localtime, strftime from time import localtime, strftime
from mantid import config
COMPRESS_TOL_TOF = .01 COMPRESS_TOL_TOF = .01
...@@ -120,7 +121,7 @@ class CalibrateRectangularDetectors(PythonAlgorithm): ...@@ -120,7 +121,7 @@ class CalibrateRectangularDetectors(PythonAlgorithm):
wksp = alg.workspace() wksp = alg.workspace()
# For NOMAD data before Aug 2012, use the updated geometry # For NOMAD data before Aug 2012, use the updated geometry
if str(wksp.getInstrument().getValidFromDate()) == "1900-01-31T23:59:59": if str(wksp.getInstrument().getValidFromDate()) == "1900-01-31T23:59:59":
path=mantid.config["instrumentDefinition.directory"] path=config["instrumentDefinition.directory"]
LoadInstrument(Workspace=wksp, Filename=path+'/'+"NOMAD_Definition_20120701-20120731.xml",RewriteSpectraMap=False) LoadInstrument(Workspace=wksp, Filename=path+'/'+"NOMAD_Definition_20120701-20120731.xml",RewriteSpectraMap=False)
return wksp return wksp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment