junifer 0.0.6.dev194__py3-none-any.whl → 0.0.6.dev205__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.6.dev194'
16
- __version_tuple__ = version_tuple = (0, 0, 6, 'dev194')
15
+ __version__ = version = '0.0.6.dev205'
16
+ __version_tuple__ = version_tuple = (0, 0, 6, 'dev205')
@@ -7,7 +7,6 @@
7
7
 
8
8
  import atexit
9
9
  import os
10
- import shutil
11
10
  import tempfile
12
11
  from pathlib import Path
13
12
  from typing import Dict, Optional, Tuple, Union
@@ -17,6 +16,7 @@ import datalad.api as dl
17
16
  from datalad.support.exceptions import IncompleteResultsError
18
17
  from datalad.support.gitrepo import GitRepo
19
18
 
19
+ from ..pipeline import WorkDirManager
20
20
  from ..utils import logger, raise_error, warn_with_log
21
21
  from .base import BaseDataGrabber
22
22
 
@@ -78,7 +78,8 @@ class DataladDataGrabber(BaseDataGrabber):
78
78
  if datadir is None:
79
79
  logger.info("`datadir` is None, creating a temporary directory")
80
80
  # Create temporary directory
81
- tmpdir = Path(tempfile.mkdtemp())
81
+ tmpdir = WorkDirManager().get_tempdir(prefix="datalad")
82
+ self._tmpdir = tmpdir
82
83
  datadir = tmpdir / "datadir"
83
84
  datadir.mkdir(parents=True, exist_ok=False)
84
85
  logger.info(f"`datadir` set to {datadir}")
@@ -104,7 +105,6 @@ class DataladDataGrabber(BaseDataGrabber):
104
105
  "Datalad locks set to "
105
106
  f"{datalad.cfg.get('datalad.locations.locks')}"
106
107
  )
107
- self._tmpdir = tmpdir
108
108
  atexit.register(self._rmtmpdir)
109
109
  # TODO: uri can be converted to a positional argument
110
110
  if uri is None:
@@ -129,7 +129,7 @@ class DataladDataGrabber(BaseDataGrabber):
129
129
  """Remove temporary directory if it exists."""
130
130
  if self._tmpdir.exists():
131
131
  logger.debug("Removing temporary directory")
132
- shutil.rmtree(self._tmpdir)
132
+ WorkDirManager().delete_tempdir(self._tmpdir)
133
133
 
134
134
  @property
135
135
  def datadir(self) -> Path:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: junifer
3
- Version: 0.0.6.dev194
3
+ Version: 0.0.6.dev205
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,6 +1,6 @@
1
1
  junifer/__init__.py,sha256=2McgH1yNue6Z1V26-uN_mfMjbTcx4CLhym-DMBl5xA4,266
2
2
  junifer/__init__.pyi,sha256=uPLuY27S7AY4kFzJX0ncCpzHnWJdztveMJpY3Di-wwQ,482
3
- junifer/_version.py,sha256=3Rg3rnSlDZ28mFFdWqzgj1pw9KotN5k2vqz_IgbP7SM,428
3
+ junifer/_version.py,sha256=0MivfJdRjt5GJZQYgXSlKz-yBFynSLqLuXF6vUbCBnQ,428
4
4
  junifer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  junifer/stats.py,sha256=BjQb2lfTGDP9l4UuQYmJFcJJNRfbJDGlNvC06SJaDDE,6237
6
6
  junifer/api/__init__.py,sha256=aAXW_KAEGQ8aAP5Eni2G1R4MWBF7UgjKOgM6akLuJco,252
@@ -122,7 +122,7 @@ junifer/data/tests/test_template_spaces.py,sha256=PJulN7xHpAcSOTY-UzTG_WPywZEBSl
122
122
  junifer/datagrabber/__init__.py,sha256=EHIK-lbjuvkt0V8ypFvLSt85OAAXSkaxBmVlCbNNz8M,323
123
123
  junifer/datagrabber/__init__.pyi,sha256=zOQE4TaCKXBTHnNqgmECtsszWIOHYiQ1CUEeXXFU9F4,832
124
124
  junifer/datagrabber/base.py,sha256=fFPIt6p3SdZ6vzReGQxK2qJnQzh8HTwBe87A2WYArVI,6538
125
- junifer/datagrabber/datalad_base.py,sha256=6B7XMIMFlBw3uixDnfoaH4gBU9EzJIO5gwmc0iHniRo,11044
125
+ junifer/datagrabber/datalad_base.py,sha256=NnWHXBfyobxoOms4ZojCMJC6ZalFOKQMH2AWVkLC2GU,11108
126
126
  junifer/datagrabber/dmcc13_benchmark.py,sha256=se9F6QVw9WX22MNld33OQv_BtdW-yPvXXu6kYykxLNw,12225
127
127
  junifer/datagrabber/multiple.py,sha256=IjBcFN-KegIad9bwopsfAQ9b_WRRUHmCbKRX2gmus0Q,6487
128
128
  junifer/datagrabber/pattern.py,sha256=iSubnHOJjYck1Zhk_JAYRZjRPKYmfoO81tG1zowd3B4,17039
@@ -335,10 +335,10 @@ junifer/utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
335
335
  junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
336
336
  junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
337
337
  junifer/utils/tests/test_logging.py,sha256=duO4ou365hxwa_kwihFtKPLaL6LC5XHiyhOijrrngbA,8009
338
- junifer-0.0.6.dev194.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
339
- junifer-0.0.6.dev194.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
340
- junifer-0.0.6.dev194.dist-info/METADATA,sha256=6DbhevG928yw2l9pvkrhTN-fDl_Y9GEcgc2GDrNUi7U,8448
341
- junifer-0.0.6.dev194.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
342
- junifer-0.0.6.dev194.dist-info/entry_points.txt,sha256=6O8ru0BP-SP7YMUZiizFNoaZ2HvJpadO2G7nKk4PwjI,48
343
- junifer-0.0.6.dev194.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
344
- junifer-0.0.6.dev194.dist-info/RECORD,,
338
+ junifer-0.0.6.dev205.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
339
+ junifer-0.0.6.dev205.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
340
+ junifer-0.0.6.dev205.dist-info/METADATA,sha256=NZlUfhUouB1p0jvcp6C94uiNFLUs6CFE07DyG6DNW-8,8448
341
+ junifer-0.0.6.dev205.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
342
+ junifer-0.0.6.dev205.dist-info/entry_points.txt,sha256=6O8ru0BP-SP7YMUZiizFNoaZ2HvJpadO2G7nKk4PwjI,48
343
+ junifer-0.0.6.dev205.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
344
+ junifer-0.0.6.dev205.dist-info/RECORD,,