xnatqa 0.0.9__tar.gz → 0.0.10__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.9
3
+ Version: 0.0.10
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xnatqa"
3
- version = "0.0.9"
3
+ version = "0.0.10"
4
4
  authors = [
5
5
  { name="Kyle Kurkela", email="kkurkela@bu.edu" },
6
6
  ]
@@ -29,4 +29,4 @@ Issues = "https://github.com/kakurk/auto_labeler/issues"
29
29
 
30
30
  [build-system]
31
31
  requires = ["setuptools >= 77.0.3"]
32
- build-backend = "setuptools.build_meta"
32
+ build-backend = "setuptools.build_meta"
@@ -6,23 +6,17 @@ from xnatqa.launch import launch
6
6
  def main():
7
7
 
8
8
  # parse input arguments
9
- parser = argparse.ArgumentParser(description="Auto Labeler")
9
+ parser = argparse.ArgumentParser(description="XNAT QA Workflow")
10
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
11
  parser.add_argument("--experiment", default = "", required=True)
15
12
 
16
13
  args, unknown_args = parser.parse_known_args()
17
14
  dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
18
- host = args.host
19
- user = args.user
20
- password = args.password
21
15
  experiment = args.experiment
22
16
 
23
17
  # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
24
18
  # this file is used in all subsequent calls to XNAT
25
- os.system(f'xnat_auth --alias xnat --url {host} --username {user} --password {password}')
19
+ os.system(f'xnat_auth --alias xnat --url $XNAT_HOST --username $XNAT_USER --password $XNAT_PASS')
26
20
 
27
21
  # tag all scans in this session
28
22
  tag_scans(dicom_dir, experiment)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.9
3
+ Version: 0.0.10
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
File without changes
File without changes
File without changes
File without changes
File without changes