Skip to content

Commit

Permalink
Fix issue with using SaveAscii v1 in IIR algo
Browse files Browse the repository at this point in the history
Refs #10675
  • Loading branch information
DanNixon committed Dec 4, 2014
1 parent 65ff2f3 commit 5e3e95c
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -890,8 +890,15 @@ def execute(self, reducer, file_ws):
elif format == 'nxspe':
SaveNXSPE(InputWorkspace=file_ws, Filename=filename + '.nxspe')
elif format == 'ascii':
#version 1 of SaveASCII produces output that works better with excel/origin
SaveAscii(InputWorkspace=file_ws, Filename=filename + '.dat', Version=1)
# Version 1 of SaveASCII produces output that works better with excel/origin
# For some reason this has to be done with an algorithm object, using the function
# wrapper with Version did not change the version that was run
saveAsciiAlg = mantid.api.AlgorithmManager.createUnmanaged('SaveAscii', 1)
saveAsciiAlg.initialize()
saveAsciiAlg.setProperty('InputWorkspace', file_ws)
saveAsciiAlg.setProperty('Filename', filename + '.dat')
saveAsciiAlg.execute()

elif format == 'gss':
ConvertUnits(InputWorkspace=file_ws, OutputWorkspace="__save_item_temp", Target="TOF")
SaveGSS(InputWorkspace="__save_item_temp", Filename=filename + ".gss")
Expand Down

0 comments on commit 5e3e95c

Please sign in to comment.