Skip to content

Commit

Permalink
Merge pull request #363 from neutrons/change_python_version
Browse files Browse the repository at this point in the history
Change autoNOM python version
  • Loading branch information
Kvieta1990 authored Jul 16, 2022
2 parents aaeeaf6 + 1dc9be9 commit 092d68c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addie/autoNOM/make_exp_ini_file_and_run_autonom.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ class MakeExpIniFileAndRunAutonom(object):
title_optional = 'optional ' + _star
list_mandatory = ['Dia', 'DiaBg', 'Vana', 'VanaBg', 'MTc']
list_optional = ['recali', 'renorm', 'autotemp', 'scan1', 'scanl', 'Hz', '#']
script_to_run = "python /SNS/NOM/shared/autoNOM/stable/autoNOM.py -l -P /SNS/NOM/shared/autoNOM/stable/"
script_to_run = "/usr/bin/python /SNS/NOM/shared/autoNOM/stable/autoNOM.py -l -P /SNS/NOM/shared/autoNOM/stable/"
script_flag = ""

def __init__(self, parent=None, folder=None):
self.parent_no_ui = parent
# self.parent = parent.ui
self.parent = parent.autonom_ui
self.folder = folder
self.script_to_run = "python " + parent._autonom_script + " -l -P " + parent.idl_script_dir
self.script_to_run = "/usr/bin/python " + parent._autonom_script + " -l -P " + parent.idl_script_dir

def create(self):
self.retrieve_metadata()
Expand Down
2 changes: 1 addition & 1 deletion addie/processing/idl/run_ndabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class RunNDabs(object):

script_to_run = 'python /SNS/NOM/shared/autoNOM/stable/NDabs.py -f '
script_to_run = '/usr/bin/python /SNS/NOM/shared/autoNOM/stable/NDabs.py -f '

def __init__(self, parent=None, list_sample_files=None):
self.parent = parent
Expand Down
2 changes: 1 addition & 1 deletion addie/processing/idl/run_sum_scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, parent=None):

def set_sum_scans_script(self):
self.script_path = self.o_gui_handler.get_sum_scans_script()
self.script = 'python ' + self.script_path
self.script = '/usr/bin/python ' + self.script_path
print("SumScans: ", self.script)

def run(self):
Expand Down

0 comments on commit 092d68c

Please sign in to comment.