junifer 0.0.4.dev11__py3-none-any.whl → 0.0.4.dev15__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
@@ -1,4 +1,4 @@
1
1
  # file generated by setuptools_scm
2
2
  # don't change, don't track in version control
3
- __version__ = version = '0.0.4.dev11'
4
- __version_tuple__ = version_tuple = (0, 0, 4, 'dev11')
3
+ __version__ = version = '0.0.4.dev15'
4
+ __version_tuple__ = version_tuple = (0, 0, 4, 'dev15')
@@ -17,8 +17,9 @@ if TYPE_CHECKING:
17
17
 
18
18
  def read_transform(
19
19
  storage: Type["BaseFeatureStorage"],
20
- feature_name: str,
21
20
  transform: str,
21
+ feature_name: Optional[str] = None,
22
+ feature_md5: Optional[str] = None,
22
23
  transform_args: Optional[Tuple] = None,
23
24
  transform_kw_args: Optional[Dict] = None,
24
25
  ) -> pd.DataFrame:
@@ -28,11 +29,13 @@ def read_transform(
28
29
  ----------
29
30
  storage : storage-like
30
31
  The storage class, for example, SQLiteFeatureStorage.
31
- feature_name : str
32
- Name of the feature to read.
33
32
  transform : str
34
33
  The kind of transform formatted as ``<package>_<function>``,
35
34
  for example, ``bctpy_degrees_und``.
35
+ feature_name : str, optional
36
+ Name of the feature to read (default None).
37
+ feature_md5 : str, optional
38
+ MD5 hash of the feature to read (default None).
36
39
  transform_args : tuple, optional
37
40
  The positional arguments for the callable of ``transform``
38
41
  (default None).
@@ -62,7 +65,9 @@ def read_transform(
62
65
  transform_kw_args = transform_kw_args or {}
63
66
 
64
67
  # Read storage
65
- stored_data = storage.read(feature_name=feature_name) # type: ignore
68
+ stored_data = storage.read(
69
+ feature_name=feature_name, feature_md5=feature_md5
70
+ ) # type: ignore
66
71
  # Retrieve package and function
67
72
  package, func_str = transform.split("_", 1)
68
73
  # Condition for package
@@ -105,7 +110,8 @@ def read_transform(
105
110
  # Apply function and store subject-wise
106
111
  output_list = []
107
112
  logger.debug(
108
- f"Computing '{package}.{func_str}' for feature {feature_name} ..."
113
+ f"Computing '{package}.{func_str}' for feature "
114
+ f"{feature_name or feature_md5} ..."
109
115
  )
110
116
  for subject in range(stored_data["data"].shape[2]):
111
117
  output = func(
@@ -119,7 +125,8 @@ def read_transform(
119
125
  idx_df = pd.DataFrame(data=stored_data["element"])
120
126
  # Create multiindex from dataframe
121
127
  logger.debug(
122
- f"Generating pandas.MultiIndex for feature {feature_name} ..."
128
+ "Generating pandas.MultiIndex for feature "
129
+ f"{feature_name or feature_md5} ..."
123
130
  )
124
131
  data_idx = pd.MultiIndex.from_frame(df=idx_df)
125
132
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: junifer
3
- Version: 0.0.4.dev11
3
+ Version: 0.0.4.dev15
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,5 +1,5 @@
1
1
  junifer/__init__.py,sha256=x1UR2jUcrUdm2HNl-3Qvyi4UUrU6ms5qm2qcmNY7zZk,391
2
- junifer/_version.py,sha256=U_geoF1S5yFBDnhC2lSmPmARQSU4qlaR9_4EWCI7QRA,175
2
+ junifer/_version.py,sha256=ZwqhGZ18UivOp5VizAjwA0R1I9txaG9DFoVQGhBFIWc,175
3
3
  junifer/stats.py,sha256=KUX4jJcLWnlE34coet8EkdFypFd-td4Vtpx5LvlomVs,5879
4
4
  junifer/api/__init__.py,sha256=YILu9M7SC0Ri4CVd90fELH2OnK_gvCYAXCoqBNCFE8E,257
5
5
  junifer/api/cli.py,sha256=epPGiMU9szF0Dbv-_ty3hxxWPUd8KM-gqQI10TJEl2Y,9843
@@ -147,7 +147,7 @@ junifer/markers/tests/test_markers_base.py,sha256=cbuCeMmjyFMP1ea6J6XRsBQo8CivQ4
147
147
  junifer/markers/tests/test_parcel_aggregation.py,sha256=RW2EKRokmavMZB7e8WghYc6fLm6UOHzOm6xKdvBsoo0,21501
148
148
  junifer/markers/tests/test_sphere_aggregation.py,sha256=1uOfnLQJ5hVCz7jcX9QG3M6htLSJSEOflKV6fXNtSZI,7652
149
149
  junifer/onthefly/__init__.py,sha256=GG_Z5NgnVNph6CLPtGFI2HE_OIuVTZ874BOq72mA-ps,160
150
- junifer/onthefly/read_transform.py,sha256=2yLlFscCZDS3z80ffD36_vF1GeKxSFfK0xNB-xsqOTM,4040
150
+ junifer/onthefly/read_transform.py,sha256=8ia2QktWpVhPDD20bKywuVHPU1Ys2Wyc_HvKyyRTcVo,4309
151
151
  junifer/onthefly/tests/test_read_transform.py,sha256=D2C3IpXQHdsJSF07v8rEwGntLGXjZOserlRhebJUAVM,4719
152
152
  junifer/pipeline/__init__.py,sha256=gOOrLf_C3oe9RdmLLjKMhs2gqtrr5Tzfi_cyTFEp8HM,238
153
153
  junifer/pipeline/pipeline_step_mixin.py,sha256=fZtJa5NJ2_9r6dD_UOkXA5fOPtRjuPUbh4lnF-ILB4c,5019
@@ -190,10 +190,10 @@ junifer/utils/fs.py,sha256=Jd9AoV2fIF7pT7KhXsn8T1O1fJ1_SFZgaFuOBAM7DG8,460
190
190
  junifer/utils/logging.py,sha256=phBwOFaK6ejqbSjkCSAkZhhdo4sr01GdVZmJIL8t-Lw,8994
191
191
  junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
192
192
  junifer/utils/tests/test_logging.py,sha256=l8oo-AiBV7H6_IzlsNcj__cLeZBUvgIGoaMszD9VaJg,7754
193
- junifer-0.0.4.dev11.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
194
- junifer-0.0.4.dev11.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
195
- junifer-0.0.4.dev11.dist-info/METADATA,sha256=qu8F2l3pSDS7qyCT7775kEtZbiuN-YGyVpPA0zhqnTo,6833
196
- junifer-0.0.4.dev11.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
197
- junifer-0.0.4.dev11.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
198
- junifer-0.0.4.dev11.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
199
- junifer-0.0.4.dev11.dist-info/RECORD,,
193
+ junifer-0.0.4.dev15.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
194
+ junifer-0.0.4.dev15.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
195
+ junifer-0.0.4.dev15.dist-info/METADATA,sha256=6sr_iKHAMdS1rBLwlyGO7fciJEpqkJb5JzZ74qZlGc8,6833
196
+ junifer-0.0.4.dev15.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
197
+ junifer-0.0.4.dev15.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
198
+ junifer-0.0.4.dev15.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
199
+ junifer-0.0.4.dev15.dist-info/RECORD,,