Skip to content

Commit

Permalink
Script is now command line compatible. Now I need to adapt the GUI to…
Browse files Browse the repository at this point in the history
… call this command line. This refs #5071.
  • Loading branch information
JeanBilheux committed May 2, 2012
1 parent 6416581 commit d28d6ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ def PyExec(self):

#if at least one non zero value found
if data_x != []:
print '-> cleanup data (remove 0s)'
print '-> cleanup data (remove zeros)'
CreateWorkspace(OutputWorkspace=output_ws,
DataX=data_x,
DataY=data_y,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def help():

#if __name__ == '__main__':
def calculate(string_runs=None,
list_attenuator=None,
# list_attenuator=None,
list_peak_back=None,
output_path=None,
tof_range=None):
Expand All @@ -631,8 +631,6 @@ def calculate(string_runs=None,
The string runs has to be specified this way:
string_runs = "run#1:nbr_attenuator, run#2:nbr_attenuator...."
list_attenuator: list of attenuators
the list_peak_back is specified this way:
list_peak_back =
[[peak_min_run1, peak_max_run1, back_min_run1, back_max_run1],
Expand All @@ -653,7 +651,6 @@ def calculate(string_runs=None,
# '55895', '55896', '55897', '55898', '55899', '55900',
# '55901', '55902']
list_runs = ['55889', '55890', '55891', '55892', '55893', '55894']

nexus_path = '/mnt/hgfs/j35/results/'
pre = 'REF_L_'
nexus_path_pre = nexus_path + pre
Expand All @@ -679,7 +676,7 @@ def calculate(string_runs=None,

if (list_attenuator is None):
# list_attenuator = [0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4]
list_attenuator = [0, 1, 1, 1, 1,1];
list_attenuator = [0, 1, 1, 1, 1, 1];

if (list_peak_back is None):
list_peak_back = zeros((len(list_runs), 4)) #[peak_min, peak_max, back_min, back_max]
Expand Down

0 comments on commit d28d6ba

Please sign in to comment.