Skip to content
Snippets Groups Projects
Commit 53234084 authored by Blake Fitch's avatar Blake Fitch
Browse files

add ability to accept undefined users when Registering new experiments -- mostly for test right now

parent a7f1e951
No related branches found
Tags STAG-2023-10-26-12-08-59
No related merge requests found
......@@ -577,7 +577,9 @@ def RegisterNewExperiment( exp_form_owner,
repo_lock_path,
force_exp_number=None,
logger=None,
time_out_secs=None ):
time_out_secs=None,
accept_undefined_user=False
):
irods_sesh, mrdataforms_base_path = get_irods_session_from_cred_yaml( cred_file_name, time_out_secs=time_out_secs )
......@@ -611,7 +613,8 @@ def RegisterNewExperiment( exp_form_owner,
+ " cast_study_ipath " + cast_study_ipath
logger.error( error_msg + " err: " + str(err))
message = "Castellum study " + cast_study_id + " is not registered as active in MrData."
return None, message
if not accept_undefined_user:
return None, message
logger.debug( "Got castellum metadata study from iRODS."
" cast_study_id: " + cast_study_id + " cast_study_ipath: " + cast_study_ipath )
......
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