xnatqa 0.0.17__py3-none-any.whl → 0.0.19__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/launch.py CHANGED
@@ -18,7 +18,10 @@ def main():
18
18
  MRsession = args.experiment
19
19
  dryrun = args.dryrun
20
20
 
21
- # authenticate with xnat using the ~/.xnat_auth file created earlier in the workflow
21
+ # make sure an xnat authentication files has already been created. See YXAIL documentation.
22
+ assert os.path.exists(os.path.expanduser('~/.xnat_auth')), 'xnat authentication needs to be run'
23
+
24
+ # authenticate with xnat using the ~/.xnat_auth file
22
25
  auth = yaxil.auth(alias = 'xnat')
23
26
 
24
27
  # open and automatically close a connection to XNAT using the auth
xnatqa/xnatqa.py CHANGED
@@ -11,14 +11,10 @@ def main():
11
11
  parser.add_argument("--dryrun", default = "", action='store_true', help="Run in dry run mode: No upload to XNAT")
12
12
 
13
13
  args, unknown_args = parser.parse_known_args()
14
- dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
14
+ dicom_dir = os.path.join(args.dicom_dir)
15
15
  experiment = args.experiment
16
16
  dryrun = args.dryrun
17
17
 
18
- # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
19
- # this file is used in all subsequent calls to XNAT
20
- os.system(f'xnat_auth --alias xnat --url $XNAT_HOST --username $XNAT_USER --password $XNAT_PASS')
21
-
22
18
  # tag all scans in this session
23
19
  tag_scans(dicom_dir, experiment, dryrun)
24
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.17
3
+ Version: 0.0.19
4
4
  Summary: A workflow for automatically tagging 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/launch.py,sha256=QWqLdwfbq28cmeJd4XQcV2wxs2ZGRX85uzFmxHydmfg,1963
3
+ xnatqa/xnatqa.py,sha256=lWNFbtJPvM-0DuUV3pjL_xfPnBxEZqGK8PIdlBaxJWE,748
4
+ xnatqa/tag/__init__.py,sha256=wXPBIbHucCqITYVZ4V5bt3VJWq8svyrJoBjbrpH1bNE,8969
5
+ xnatqa-0.0.19.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ xnatqa-0.0.19.dist-info/METADATA,sha256=Ze37T8xBNT1oigywvb7XA-b1nvUe6DDJeRewPXHcrj0,1187
7
+ xnatqa-0.0.19.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
8
+ xnatqa-0.0.19.dist-info/entry_points.txt,sha256=g5CvKDfx6vIIp76wdB1aiWe1SkBORj2S8gFReBBxBws,74
9
+ xnatqa-0.0.19.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
10
+ xnatqa-0.0.19.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- xnatqa/__init__.py,sha256=RIG_ihjfFD1upKlhlxI-9Fs4ISf0lIW4Zg7CaFirV4A,644
2
- xnatqa/launch.py,sha256=jZTCAftrT5MBcbPKXNorFux5TkezyktJBhzJaKI4ypM,1797
3
- xnatqa/xnatqa.py,sha256=KUXfs6EAZX15K2s8JcsIXuUOV1swma_7gJw-IRkD1yM,1016
4
- xnatqa/tag/__init__.py,sha256=wXPBIbHucCqITYVZ4V5bt3VJWq8svyrJoBjbrpH1bNE,8969
5
- xnatqa-0.0.17.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- xnatqa-0.0.17.dist-info/METADATA,sha256=NdGanatTgamPgLnL20wQHgJYdJj7eHU2ZGoNdnXs2eE,1187
7
- xnatqa-0.0.17.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
8
- xnatqa-0.0.17.dist-info/entry_points.txt,sha256=g5CvKDfx6vIIp76wdB1aiWe1SkBORj2S8gFReBBxBws,74
9
- xnatqa-0.0.17.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
10
- xnatqa-0.0.17.dist-info/RECORD,,