Skip to content

Commit

Permalink
Getting the iparm filename into the workspace. Refs #4209 and #2320.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Nov 28, 2011
1 parent 5906c4c commit 2fccc09
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ def _generateFocusPos(self, lines):

# get name of parameter file
temp = lines[0]
temp.replace("Instrument parameter file:", "")
temp = temp.replace("Instrument parameter file:", "")
self.iparmFile = temp.strip()
lines = lines[1:] # delete this line

Expand Down Expand Up @@ -424,6 +424,7 @@ def _focus(self, wksp, calib, info, filterLogs=None, preserveEvents=True,
self.log().notice("FOCUS:" + str(focusPos))
if not focusPos is None:
EditInstrumentGeometry(Workspace=wksp, NewInstrument=False, **focusPos)
wksp.getRun()['iparm_file'] = self._config.iparmFile

ConvertUnits(InputWorkspace=wksp, OutputWorkspace=wksp, Target="TOF")
if preserveEvents and not "histo" in self.getProperty("Extension"):
Expand Down

0 comments on commit 2fccc09

Please sign in to comment.