Skip to content

Commit

Permalink
Re #10684 Accommodate bug in SaveNXSPE
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Feb 9, 2015
1 parent 41e03c3 commit f129b37
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -913,12 +913,15 @@ def save_results(self, workspace, save_file=None, formats=None):
if len(ext) > 1:
formats.add(ext[1:])


name_orig = workspace.name()
for file_format in formats:
for case in common.switch(file_format):
if case('nxspe'):
filename = save_file + '.nxspe'
SaveNXSPE(InputWorkspace=workspace,Filename= filename, KiOverKfScaling=prop_man.apply_kikf_correction,psi=prop_man.psi)
name_supported=nameorig.replace('/','of')
RenameWorkspace(InputWorkspace=name_orig,OutputWorkspace=name_supported)
SaveNXSPE(InputWorkspace=name_supported,Filename= filename, KiOverKfScaling=prop_man.apply_kikf_correction,psi=prop_man.psi)
RenameWorkspace(InputWorkspace=name_supported,OutputWorkspace=name_orig)
break
if case('spe'):
filename = save_file + '.spe'
Expand Down

0 comments on commit f129b37

Please sign in to comment.