possibility to run ap without filling google spreadsheet (LOGBOOK=None)
This commit is contained in:
2
ap/ap.py
2
ap/ap.py
@ -100,6 +100,7 @@ for run in range(last_run,0,-1):
|
||||
|
||||
f_log = open(log_file, "w")
|
||||
|
||||
if logbook_url is not None:
|
||||
credential_file = choice(credential_files)
|
||||
|
||||
log_run = f'python {dir_ap}/ap/update-spreadsheet.py --url {logbook_url} --unique_run {unique_run_number} --run_number {run_number} --acq_number {acq_number} --user_tag {user_tag} --cell_name {cell_name} --time_run_taken {trun} --motor_name {motor_name} --motor_value {motor_value} --credentials {credential_file}'
|
||||
@ -203,6 +204,7 @@ for run in range(1, last_run+1):
|
||||
|
||||
f_log = open(log_file, "w")
|
||||
|
||||
if logbook_url is not None:
|
||||
credential_file = choice(credential_files)
|
||||
|
||||
log_laser = f'python {dir_ap}/ap/update-spreadsheet.py --url {logbook_url} --unique_run {unique_run_number} --number_frames {nframes} --hits_rate {hitrate_value} --laser {laser} --credentials {credential_file}'
|
||||
|
Reference in New Issue
Block a user