Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of options provided to the push to S3 script #964

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions python/run_push_imaging_files_to_s3_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,25 @@ def main():
" PUSH IMAGING FILES TO AMAZON S3 BUCKET SCRIPT\n"
"********************************************************************\n"
"The program gets all the files associated to an upload ID and push them to an Amazon S3 bucket.\n\n"
# TODO more description on how the script works

"usage : run_push_imaging_files_to_s3_pipeline.py -p <profile> -u <upload_id> ...\n\n"

"options: \n"
"\t-p, --profile : Name of the python database config file in dicom-archive/.loris_mri\n"
"\t-t, --tarchive_path : Absolute path to the DICOM archive to process\n"
"\t-u, --upload_id : ID of the upload (from mri_upload) related to the DICOM archive to process\n"
"\t-v, --verbose : If set, be verbose\n\n"

"required options are: \n"
"\t--profile\n"
"\t--tarchive_path OR --upload_id\n"
"\t--upload_id\n"
)

options_dict = {
"profile": {
"value": None, "required": True, "expect_arg": True, "short_opt": "p", "is_path": False
},
"upload_id": {
"value": None, "required": False, "expect_arg": True, "short_opt": "u", "is_path": False
"value": None, "required": True, "expect_arg": True, "short_opt": "u", "is_path": False
},
"verbose": {
"value": False, "required": False, "expect_arg": False, "short_opt": "v", "is_path": False
Expand Down