junifer 0.0.4.dev821__py3-none-any.whl → 0.0.4.dev824__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.4.dev821'
16
- __version_tuple__ = version_tuple = (0, 0, 4, 'dev821')
15
+ __version__ = version = '0.0.4.dev824'
16
+ __version_tuple__ = version_tuple = (0, 0, 4, 'dev824')
junifer/api/cli.py CHANGED
@@ -114,14 +114,13 @@ def _parse_elements_file(filepath: Path) -> List[Tuple[str, ...]]:
114
114
  filepath,
115
115
  header=None, # no header # type: ignore
116
116
  index_col=False, # no index column
117
+ dtype=str,
117
118
  skipinitialspace=True, # no leading space after delimiter
118
119
  )
119
120
  # Remove trailing whitespace in cell entries
120
- csv_df_trimmed = csv_df.apply(
121
- lambda x: x.str.strip() if x.dtype == "object" else x
122
- )
121
+ csv_df_trimmed = csv_df.apply(lambda x: x.str.strip())
123
122
  # Convert to list of tuple of str
124
- return list(map(tuple, csv_df_trimmed.to_numpy().astype(str)))
123
+ return list(map(tuple, csv_df_trimmed.to_numpy()))
125
124
 
126
125
 
127
126
  def _validate_verbose(
@@ -156,6 +156,21 @@ def test_run_using_element_file(tmp_path: Path, elements: str) -> None:
156
156
  " sub-01 , ses-01 \n sub-02, ses-01 ",
157
157
  [("sub-01", "ses-01"), ("sub-02", "ses-01")],
158
158
  ),
159
+ ("001,01", [("001", "01")]),
160
+ (
161
+ "001,01\n002,02",
162
+ [("001", "01"), ("002", "02")],
163
+ ),
164
+ ("001, 01", [("001", "01")]),
165
+ (
166
+ "001, 01\n002, 02",
167
+ [("001", "01"), ("002", "02")],
168
+ ),
169
+ (" 001 , 01 ", [("001", "01")]),
170
+ (
171
+ " 001 , 01 \n 002, 02 ",
172
+ [("001", "01"), ("002", "02")],
173
+ ),
159
174
  ],
160
175
  )
161
176
  def test_multi_element_access(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: junifer
3
- Version: 0.0.4.dev821
3
+ Version: 0.0.4.dev824
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,8 +1,8 @@
1
1
  junifer/__init__.py,sha256=x1UR2jUcrUdm2HNl-3Qvyi4UUrU6ms5qm2qcmNY7zZk,391
2
- junifer/_version.py,sha256=7R70gnPY70g1d5z-hP_oxweFmYhsTV8C7iLa_yffnkI,428
2
+ junifer/_version.py,sha256=UagWSi-zHoGa6KS0dHcXrPxUENdONGC6fscTIQ6HMn8,428
3
3
  junifer/stats.py,sha256=sU5IZ2qFZWbzgSutQS_z42miIVItpSGmQYBn6KkD5fA,6162
4
4
  junifer/api/__init__.py,sha256=YILu9M7SC0Ri4CVd90fELH2OnK_gvCYAXCoqBNCFE8E,257
5
- junifer/api/cli.py,sha256=auw38tIH7ipTnaADM7on0or7zauY-BFII8nd-eRUEJs,13664
5
+ junifer/api/cli.py,sha256=_fC35jp0YzqNIpO5yvTb_5QBmUpw6sRFgVjBeoRbhO8,13627
6
6
  junifer/api/decorators.py,sha256=8bnwHPAe7VgzKxl--M_e0umdAlTVSzaJQHEJZ5kof5k,2580
7
7
  junifer/api/functions.py,sha256=N59KM2GqxIwMU2tXc44oYCqogclgqD45qI_ULrfGYDQ,11616
8
8
  junifer/api/parser.py,sha256=a3SSC2xO-PF1pqXZXFq8Sh9aVd-dmHolJbCkGyOUTAM,4416
@@ -30,7 +30,7 @@ junifer/api/res/fsl/img2imgcoord,sha256=Zmaw3oJYrEltcXiPyEubXry9ppAq3SND52tdDWGg
30
30
  junifer/api/res/fsl/run_fsl_docker.sh,sha256=mRLtZo0OgDwleoee2MG6rYI37HVuGNk9zOADwcl97RA,1122
31
31
  junifer/api/res/fsl/std2imgcoord,sha256=-X5wRH6XMl0yqnTACJX6MFhO8DFOEWg42MHRxGvimXg,49
32
32
  junifer/api/tests/test_api_utils.py,sha256=zDRQiqFOaoO02FpzJCxEbZvsP4u4__Yr25e5k5MJwuI,2713
33
- junifer/api/tests/test_cli.py,sha256=X24TrEvSXnD8ysVMlaSHPsJPOOUPAzLxLgb3jCj1ahg,8461
33
+ junifer/api/tests/test_cli.py,sha256=FYGuTLlqjB9IifMIdvHEGSQSSy6ym6623fKKPs8PsM8,8871
34
34
  junifer/api/tests/test_functions.py,sha256=mvxdaGHxPje-aQGS2fo95xjU7jOf8TYaTWqwFZ5T0oY,17215
35
35
  junifer/api/tests/test_parser.py,sha256=eUz2JPVb0_cxvoeI1O_C5PMNs5v_lDzGsN6fV1VW5Eg,6109
36
36
  junifer/api/tests/data/gmd_mean.yaml,sha256=Ohb_C5cfQMK-59U9O1ZhejXyBtzLc5Y4cv8QyYq2azg,330
@@ -248,10 +248,10 @@ junifer/utils/logging.py,sha256=furcU3XIUpUvnpe4PEwzWWIWgmH4j2ZA4MQdvSGWjj0,9216
248
248
  junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
249
249
  junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
250
250
  junifer/utils/tests/test_logging.py,sha256=l8oo-AiBV7H6_IzlsNcj__cLeZBUvgIGoaMszD9VaJg,7754
251
- junifer-0.0.4.dev821.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
252
- junifer-0.0.4.dev821.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
253
- junifer-0.0.4.dev821.dist-info/METADATA,sha256=AFPNBFGNbtVc-0SIzHhTdNHAJQAQtq38g9KvCua_CmQ,8235
254
- junifer-0.0.4.dev821.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
255
- junifer-0.0.4.dev821.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
256
- junifer-0.0.4.dev821.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
257
- junifer-0.0.4.dev821.dist-info/RECORD,,
251
+ junifer-0.0.4.dev824.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
252
+ junifer-0.0.4.dev824.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
253
+ junifer-0.0.4.dev824.dist-info/METADATA,sha256=fGHhDFaE8INr9IaHX8WoX-C_RP2Y52kl8Lx5lizlYPM,8235
254
+ junifer-0.0.4.dev824.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
255
+ junifer-0.0.4.dev824.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
256
+ junifer-0.0.4.dev824.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
257
+ junifer-0.0.4.dev824.dist-info/RECORD,,