Skip to content

Commit

Permalink
Re #7405 make sure process info makes it to file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Jul 9, 2013
1 parent f94516a commit ec591ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Code/Mantid/scripts/Interface/reduction_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ def open_file(self, file_path=None):
msg = "The file you attempted to load doesn't have a recognized format.\n\n"
msg += "Please make sure it has been produced by this application."
QtGui.QMessageBox.warning(self, "Error loading reduction parameter file", msg)
print sys.exc_value
return

if not found_instrument == self._instrument:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ def to_batch(self):
else:
script += str(item.state())

xml_process = "None"
# Save the process description
base_name = os.path.basename(data_file)
name, ext = os.path.splitext(base_name)
xml_process = os.path.join(self._output_directory, "%s_process.xml" % name)
xml_process = os.path.normpath(xml_process)
self.to_xml(xml_process)

if self._settings.api2:
script += "SaveIq(process=%r)\n" % xml_process
Expand Down

0 comments on commit ec591ee

Please sign in to comment.