junifer 0.0.5.dev36__py3-none-any.whl → 0.0.5.dev42__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.
junifer/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.5.dev36'
16
- __version_tuple__ = version_tuple = (0, 0, 5, 'dev36')
15
+ __version__ = version = '0.0.5.dev42'
16
+ __version_tuple__ = version_tuple = (0, 0, 5, 'dev42')
junifer/api/functions.py CHANGED
@@ -5,6 +5,7 @@
5
5
  # Synchon Mandal <s.mandal@fz-juelich.de>
6
6
  # License: AGPL
7
7
 
8
+ import os
8
9
  import shutil
9
10
  import typing
10
11
  from pathlib import Path
@@ -339,12 +340,12 @@ def reset(config: Dict) -> None:
339
340
  storage = config["storage"]
340
341
  storage_uri = Path(storage["uri"])
341
342
  logger.info(f"Deleting {storage_uri.resolve()!s}")
342
- # Delete storage; will be str
343
+ # Delete storage
343
344
  if storage_uri.exists():
344
- # Delete files in the directory
345
- for file in storage_uri.iterdir():
345
+ # Delete files in the job storage directory
346
+ for file in storage_uri.parent.iterdir():
346
347
  file.unlink(missing_ok=True)
347
- # Remove directory
348
+ # Remove job storage directory
348
349
  storage_uri.parent.rmdir()
349
350
 
350
351
  # Fetch job name (if present)
@@ -359,8 +360,9 @@ def reset(config: Dict) -> None:
359
360
  if job_dir.exists():
360
361
  # Remove files and directories
361
362
  shutil.rmtree(job_dir)
362
- # Remove directory
363
- job_dir.parent.rmdir()
363
+ # Remove parent directory (if empty)
364
+ if not next(os.scandir(job_dir.parent), None):
365
+ job_dir.parent.rmdir()
364
366
 
365
367
 
366
368
  def list_elements(
@@ -24,8 +24,9 @@ class DataladAOMICID1000(PatternDataladDataGrabber):
24
24
  The directory where the datalad dataset will be cloned. If None,
25
25
  the datalad dataset will be cloned into a temporary directory
26
26
  (default None).
27
- types: {"BOLD", "BOLD_confounds", "T1w", "VBM_CSF", "VBM_GM", \
28
- "VBM_WM", "DWI"} or a list of the options, optional
27
+ types: {"BOLD", "BOLD_confounds", "BOLD_mask", "T1w", "T1w_mask", \
28
+ "VBM_CSF", "VBM_GM", "VBM_WM", "DWI"} or \
29
+ a list of the options, optional
29
30
  AOMIC data types. If None, all available data types are selected.
30
31
  (default None).
31
32
  native_t1w : bool, optional
@@ -26,8 +26,9 @@ class DataladAOMICPIOP1(PatternDataladDataGrabber):
26
26
  The directory where the datalad dataset will be cloned. If None,
27
27
  the datalad dataset will be cloned into a temporary directory
28
28
  (default None).
29
- types: {"BOLD", "BOLD_confounds", "T1w", "VBM_CSF", "VBM_GM", \
30
- "VBM_WM", "DWI"} or a list of the options, optional
29
+ types: {"BOLD", "BOLD_confounds", "BOLD_mask", "T1w", "T1w_mask", \
30
+ "VBM_CSF", "VBM_GM", "VBM_WM", "DWI"} or \
31
+ a list of the options, optional
31
32
  AOMIC data types. If None, all available data types are selected.
32
33
  (default None).
33
34
  tasks : {"restingstate", "anticipation", "emomatching", "faces", \
@@ -26,8 +26,9 @@ class DataladAOMICPIOP2(PatternDataladDataGrabber):
26
26
  The directory where the datalad dataset will be cloned. If None,
27
27
  the datalad dataset will be cloned into a temporary directory
28
28
  (default None).
29
- types: {"BOLD", "BOLD_confounds", "T1w", "VBM_CSF", "VBM_GM", \
30
- "VBM_WM", "DWI"} or a list of the options, optional
29
+ types: {"BOLD", "BOLD_confounds", "BOLD_mask", "T1w", "T1w_mask", \
30
+ "VBM_CSF", "VBM_GM", "VBM_WM", "DWI"} or \
31
+ a list of the options, optional
31
32
  AOMIC data types. If None, all available data types are selected.
32
33
  (default None).
33
34
  tasks : {"restingstate", "stopsignal", "workingmemory"} \
@@ -25,8 +25,9 @@ class DMCC13Benchmark(PatternDataladDataGrabber):
25
25
  The directory where the datalad dataset will be cloned. If None,
26
26
  the datalad dataset will be cloned into a temporary directory
27
27
  (default None).
28
- types: {"BOLD", "BOLD_confounds", "T1w", "VBM_CSF", "VBM_GM", \
29
- "VBM_WM"} or a list of the options, optional
28
+ types: {"BOLD", "BOLD_confounds", "BOLD_mask", "T1w", "T1w_mask", \
29
+ "VBM_CSF", "VBM_GM", "VBM_WM", "Warp" (only if \
30
+ "native_t1w = True")} or a list of the options, optional
30
31
  DMCC data types. If None, all available data types are selected.
31
32
  (default None).
32
33
  sessions: {"ses-wave1bas", "ses-wave1pro", "ses-wave1rea"} or list of \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: junifer
3
- Version: 0.0.5.dev36
3
+ Version: 0.0.5.dev42
4
4
  Summary: JUelich NeuroImaging FEature extractoR
5
5
  Author-email: Fede Raimondo <f.raimondo@fz-juelich.de>, Synchon Mandal <s.mandal@fz-juelich.de>
6
6
  Maintainer-email: Fede Raimondo <f.raimondo@fz-juelich.de>, Synchon Mandal <s.mandal@fz-juelich.de>
@@ -1,10 +1,10 @@
1
1
  junifer/__init__.py,sha256=x1UR2jUcrUdm2HNl-3Qvyi4UUrU6ms5qm2qcmNY7zZk,391
2
- junifer/_version.py,sha256=mtiYNkxzw1J_5KKK0VZDDFERULfO3kg5_ZQlOd7_imI,426
2
+ junifer/_version.py,sha256=GC-Zk4bYfeDF8BRadMXm7umiKtz6yuOvNxmCwdxJoMU,426
3
3
  junifer/stats.py,sha256=jN22_qFvWYBU9ZIMnCSzN4iOscWnWrcrUPIdLeDkV64,6163
4
4
  junifer/api/__init__.py,sha256=pSj8V8tmwOAQ3sshWJfRfB-n3z5bcJj3pHOBX4-8ONc,251
5
5
  junifer/api/cli.py,sha256=wtU7Rv9tDIT-4KQAkG6WxiE6mop3cuz6XxGDewceHPs,15329
6
6
  junifer/api/decorators.py,sha256=8bnwHPAe7VgzKxl--M_e0umdAlTVSzaJQHEJZ5kof5k,2580
7
- junifer/api/functions.py,sha256=29bGcpFueL3mjOcoNWU0xaHpM5aIrRQod-U2o-5_TSs,12938
7
+ junifer/api/functions.py,sha256=zCWLXDZ_cAqRZ5bFeky0KeqBztuoa6L3-djI65tqtpY,13055
8
8
  junifer/api/parser.py,sha256=a3SSC2xO-PF1pqXZXFq8Sh9aVd-dmHolJbCkGyOUTAM,4416
9
9
  junifer/api/utils.py,sha256=dyjTdPMwX9qeCrn8SQT2Pjshfnu-y1FEyujV7lCzvm0,3333
10
10
  junifer/api/queue_context/__init__.py,sha256=_yXJ8woTxLNLoSR3yLxAW7MtC5sa-oCRxewsZ9D3j98,271
@@ -87,15 +87,15 @@ junifer/data/tests/test_template_spaces.py,sha256=PJulN7xHpAcSOTY-UzTG_WPywZEBSl
87
87
  junifer/datagrabber/__init__.py,sha256=fhHKsZyBeqCFJJMr53VF6EUkNrFuUZkNR8QZbaoHTNg,680
88
88
  junifer/datagrabber/base.py,sha256=KgMSKfkwd4yLW4PhoJDoWMgcDkGmDoIs6jkgKyOJd9A,6303
89
89
  junifer/datagrabber/datalad_base.py,sha256=SsGUJdefdDgAJARBG5kHcbLK2CvvnoEto0TpGZUgnWE,10659
90
- junifer/datagrabber/dmcc13_benchmark.py,sha256=K7-TnVRCDQwL6IIaFofJABKr2Jho0loewAavzdmBjK0,12869
90
+ junifer/datagrabber/dmcc13_benchmark.py,sha256=rLf6TD9fvjUwuiaqF0vXSDs9w6r3jhNHorKXX7gG8LQ,12945
91
91
  junifer/datagrabber/multiple.py,sha256=eXQIsvSNvD8GuEITjMaMoi1GwoeyWXXbQMRi-f2qgc4,4923
92
92
  junifer/datagrabber/pattern.py,sha256=5XQe0k3iiTID5fbUsShjFKaqkueuPU34ZpzOi1JzFEw,12700
93
93
  junifer/datagrabber/pattern_datalad.py,sha256=y9ptDZEhSj41pf05WNySrj8j4kbi5uIXveFXv4dkKpk,4092
94
94
  junifer/datagrabber/utils.py,sha256=NseewPJvhc0h7Ueyfi_KRUwFfs2V7HspBtYL2Xr9Dik,6965
95
95
  junifer/datagrabber/aomic/__init__.py,sha256=R7yrRVBWsBW25CH0fw-KHpFwb_EC-MlPKDzssGfj5A0,281
96
- junifer/datagrabber/aomic/id1000.py,sha256=hvi-25NWeakUX4Pu1YDjxfKbo6U4WUjw-I9c2kGmgnk,6005
97
- junifer/datagrabber/aomic/piop1.py,sha256=ivQ1wjYAR1qb-fN13NWA-69iS8XvgMMUCwQR5fBh2n0,8428
98
- junifer/datagrabber/aomic/piop2.py,sha256=LuYQL4t4k-K_74Gd8zVnV7Y5W6tt1krBpk0a7D5LQ9Q,8047
96
+ junifer/datagrabber/aomic/id1000.py,sha256=5mGBBQUuhWn-HMNrCy9rQd8_ANjrW-AkwRmdllOwSvM,6043
97
+ junifer/datagrabber/aomic/piop1.py,sha256=GIxuv0n36967jW8v_tdKmvyb24JDF9bXsoI33mU5Y6w,8466
98
+ junifer/datagrabber/aomic/piop2.py,sha256=LOUj-29xddsT3ktOc5_pjuHrqCwR-1gnx1QmkHfWiOg,8085
99
99
  junifer/datagrabber/aomic/tests/test_id1000.py,sha256=cA329VAbZ9mY89vi756xqq1p4LHkBp4e7d_OZJOLsGk,4700
100
100
  junifer/datagrabber/aomic/tests/test_piop1.py,sha256=Faqmya-OisThPom1nooxlacaCD4afLFSw03Wn58gK6g,5466
101
101
  junifer/datagrabber/aomic/tests/test_piop2.py,sha256=8emWWImX-ltUHJtEFWo8Jng_0kK-Yz66RyA7ddt-By4,5265
@@ -256,10 +256,10 @@ junifer/utils/logging.py,sha256=furcU3XIUpUvnpe4PEwzWWIWgmH4j2ZA4MQdvSGWjj0,9216
256
256
  junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
257
257
  junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
258
258
  junifer/utils/tests/test_logging.py,sha256=l8oo-AiBV7H6_IzlsNcj__cLeZBUvgIGoaMszD9VaJg,7754
259
- junifer-0.0.5.dev36.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
260
- junifer-0.0.5.dev36.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
261
- junifer-0.0.5.dev36.dist-info/METADATA,sha256=5OmMaGrG1dIzsg8i7OHCyLkntZ0QeeKLmhtzCFZIRBo,8234
262
- junifer-0.0.5.dev36.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
263
- junifer-0.0.5.dev36.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
264
- junifer-0.0.5.dev36.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
265
- junifer-0.0.5.dev36.dist-info/RECORD,,
259
+ junifer-0.0.5.dev42.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
260
+ junifer-0.0.5.dev42.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
261
+ junifer-0.0.5.dev42.dist-info/METADATA,sha256=jfY04v7LExnFrN28b_6_AxpFz0_YdCK1x_iTqsnKa9M,8234
262
+ junifer-0.0.5.dev42.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
263
+ junifer-0.0.5.dev42.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
264
+ junifer-0.0.5.dev42.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
265
+ junifer-0.0.5.dev42.dist-info/RECORD,,