xnatqa 0.0.8__py3-none-any.whl → 0.0.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
xnatqa/xnatqa.py CHANGED
@@ -3,27 +3,32 @@ import argparse
3
3
  from xnatqa.tag import tag_scans
4
4
  from xnatqa.launch import launch
5
5
 
6
- # parse input arguments
7
- parser = argparse.ArgumentParser(description="Auto Labeler")
8
- parser.add_argument("--dicom_dir", default="/input", help = "where the DICOMs are located", required=True)
9
- parser.add_argument("--host", default="https://xnat2.bu.edu", help="BU XNAT host", required=True)
10
- parser.add_argument("--user", help="BU XNAT2 username", required=True)
11
- parser.add_argument("--password", help="BU XNAT2 Password", required=True)
12
- parser.add_argument("--experiment", default = "", required=True)
6
+ def main():
13
7
 
14
- args, unknown_args = parser.parse_known_args()
15
- dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
16
- host = args.host
17
- user = args.user
18
- password = args.password
19
- experiment = args.experiment
8
+ # parse input arguments
9
+ parser = argparse.ArgumentParser(description="Auto Labeler")
10
+ parser.add_argument("--dicom_dir", default="/input", help = "where the DICOMs are located", required=True)
11
+ parser.add_argument("--host", default="https://xnat2.bu.edu", help="BU XNAT host", required=True)
12
+ parser.add_argument("--user", help="BU XNAT2 username", required=True)
13
+ parser.add_argument("--password", help="BU XNAT2 Password", required=True)
14
+ parser.add_argument("--experiment", default = "", required=True)
20
15
 
21
- # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
22
- # this file is used in all subsequent calls to XNAT
23
- os.system(f'xnat_auth --alias xnat --url {host} --username {user} --password {password}')
16
+ args, unknown_args = parser.parse_known_args()
17
+ dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
18
+ host = args.host
19
+ user = args.user
20
+ password = args.password
21
+ experiment = args.experiment
24
22
 
25
- # tag all scans in this session
26
- tag_scans(dicom_dir, experiment)
23
+ # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
24
+ # this file is used in all subsequent calls to XNAT
25
+ os.system(f'xnat_auth --alias xnat --url {host} --username {user} --password {password}')
27
26
 
28
- # launch all QA jobs for this session
29
- launch(experiment)
27
+ # tag all scans in this session
28
+ tag_scans(dicom_dir, experiment)
29
+
30
+ # launch all QA jobs for this session
31
+ launch(experiment)
32
+
33
+ if __name__ == "__main__":
34
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: A workflow for automatically labeling and running QA on MRI scans within XNAT
5
5
  Author-email: Kyle Kurkela <kkurkela@bu.edu>
6
6
  License-Expression: MIT
@@ -0,0 +1,10 @@
1
+ xnatqa/__init__.py,sha256=RIG_ihjfFD1upKlhlxI-9Fs4ISf0lIW4Zg7CaFirV4A,644
2
+ xnatqa/xnatqa.py,sha256=8W4iN98gWyVD8uVcdTkF3K7pFqrm6riBQaS90pq9ohk,1289
3
+ xnatqa/launch/__init__.py,sha256=zT6XGXWBHOtHZ_TVmlN9vp3V8JqUAYscxMBUZJJBlgo,1178
4
+ xnatqa/tag/__init__.py,sha256=kjdB9zSA_YHGOPmG_BDM0HtSK6thmBt0Awd4Zj6NN5A,8921
5
+ xnatqa-0.0.9.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ xnatqa-0.0.9.dist-info/METADATA,sha256=3fDVZzf8u6yRY4fAlMrDuo5CsiIRWh0WILFmSRIdzX0,1199
7
+ xnatqa-0.0.9.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ xnatqa-0.0.9.dist-info/entry_points.txt,sha256=UqPAByHiJTqwkT0UBymn6EOIGBlPsb9mEZK86HIahs8,46
9
+ xnatqa-0.0.9.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
10
+ xnatqa-0.0.9.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- xnatqa/__init__.py,sha256=RIG_ihjfFD1upKlhlxI-9Fs4ISf0lIW4Zg7CaFirV4A,644
2
- xnatqa/xnatqa.py,sha256=UoX74fhC5I3Cj4nyc1ORtH8P5sGApySvQ2UmeO2kpHM,1157
3
- xnatqa/launch/__init__.py,sha256=zT6XGXWBHOtHZ_TVmlN9vp3V8JqUAYscxMBUZJJBlgo,1178
4
- xnatqa/tag/__init__.py,sha256=kjdB9zSA_YHGOPmG_BDM0HtSK6thmBt0Awd4Zj6NN5A,8921
5
- xnatqa-0.0.8.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- xnatqa-0.0.8.dist-info/METADATA,sha256=VrY4Obk0gvF8Ryk6gGQGL_DXv5GlIa71Itx6c0pUxSM,1199
7
- xnatqa-0.0.8.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- xnatqa-0.0.8.dist-info/entry_points.txt,sha256=UqPAByHiJTqwkT0UBymn6EOIGBlPsb9mEZK86HIahs8,46
9
- xnatqa-0.0.8.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
10
- xnatqa-0.0.8.dist-info/RECORD,,
File without changes