Skip to content
Snippets Groups Projects
Commit a675fbc9 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Fix EnginX systemtest for python3

`unicode` doesn't exist in python 3, use six.u instead
parent 3154f103
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ import os ...@@ -11,6 +11,7 @@ import os
import csv import csv
from platform import system from platform import system
from shutil import copy2 from shutil import copy2
from six import u
def main(vanadium_run, user, focus_run, **kwargs): def main(vanadium_run, user, focus_run, **kwargs):
...@@ -523,7 +524,7 @@ def _save_out(run_number, focus_directory, focus_general, output, join_string, b ...@@ -523,7 +524,7 @@ def _save_out(run_number, focus_directory, focus_general, output, join_string, b
# work out where to save the files # work out where to save the files
filename = os.path.join(focus_directory, join_string.format(run_number, bank_id)) filename = os.path.join(focus_directory, join_string.format(run_number, bank_id))
hdf5_name = os.path.join(focus_directory, run_number + ".hdf5") hdf5_name = os.path.join(focus_directory, run_number + ".hdf5")
if not unicode(bank_id).isnumeric(): if not u(bank_id).isnumeric():
bank_id = 0 bank_id = 0
# save the files out to the user directory # save the files out to the user directory
simple.SaveFocusedXYE(InputWorkspace=output, Filename=filename + ".dat", SplitFiles=False, simple.SaveFocusedXYE(InputWorkspace=output, Filename=filename + ".dat", SplitFiles=False,
......
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