datamint 2.3.4__py3-none-any.whl → 2.3.5__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.
Potentially problematic release.
This version of datamint might be problematic. Click here for more details.
- datamint/api/endpoints/resources_api.py +8 -3
- {datamint-2.3.4.dist-info → datamint-2.3.5.dist-info}/METADATA +2 -2
- {datamint-2.3.4.dist-info → datamint-2.3.5.dist-info}/RECORD +5 -5
- {datamint-2.3.4.dist-info → datamint-2.3.5.dist-info}/WHEEL +0 -0
- {datamint-2.3.4.dist-info → datamint-2.3.5.dist-info}/entry_points.txt +0 -0
|
@@ -263,8 +263,8 @@ class ResourcesApi(CreatableEntityApi[Resource], DeletableEntityApi[Resource]):
|
|
|
263
263
|
filename = new_filename
|
|
264
264
|
|
|
265
265
|
is_a_dicom_file = None
|
|
266
|
-
if mimetype
|
|
267
|
-
mimetype_list, ext = guess_typez(file_path, use_magic=
|
|
266
|
+
if not mimetype:
|
|
267
|
+
mimetype_list, ext = guess_typez(file_path, use_magic=False)
|
|
268
268
|
for mime in mimetype_list:
|
|
269
269
|
if mime in NIFTI_MIMES:
|
|
270
270
|
mimetype = DEFAULT_NIFTI_MIME
|
|
@@ -273,7 +273,12 @@ class ResourcesApi(CreatableEntityApi[Resource], DeletableEntityApi[Resource]):
|
|
|
273
273
|
if ext == '.nii.gz' or filename.lower().endswith('nii.gz'):
|
|
274
274
|
mimetype = DEFAULT_NIFTI_MIME
|
|
275
275
|
else:
|
|
276
|
-
mimetype = mimetype_list[-1] if mimetype_list else DEFAULT_MIME_TYPE
|
|
276
|
+
mimetype = mimetype_list[-1] if mimetype_list and mimetype_list[-1] else DEFAULT_MIME_TYPE
|
|
277
|
+
if (not mimetype) or mimetype == DEFAULT_MIME_TYPE:
|
|
278
|
+
msg = f"Could not determine mimetype for file {source_filepath}."
|
|
279
|
+
_LOGGER.warning(msg)
|
|
280
|
+
_USER_LOGGER.warning(msg)
|
|
281
|
+
|
|
277
282
|
|
|
278
283
|
mimetype = standardize_mimetype(mimetype)
|
|
279
284
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datamint
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.5
|
|
4
4
|
Summary: A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows.
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -22,7 +22,7 @@ Requires-Dist: humanize (>=4.0.0,<5.0.0)
|
|
|
22
22
|
Requires-Dist: lazy-loader (>=0.3.0)
|
|
23
23
|
Requires-Dist: lightning
|
|
24
24
|
Requires-Dist: matplotlib
|
|
25
|
-
Requires-Dist: medimgkit (>=0.7.
|
|
25
|
+
Requires-Dist: medimgkit (>=0.7.3)
|
|
26
26
|
Requires-Dist: nest-asyncio (>=1.0.0,<2.0.0)
|
|
27
27
|
Requires-Dist: nibabel (>=4.0.0)
|
|
28
28
|
Requires-Dist: numpy
|
|
@@ -10,7 +10,7 @@ datamint/api/endpoints/channels_api.py,sha256=oQqxSw9DJzAqtVQI7-tc1llTdnsm-URx8j
|
|
|
10
10
|
datamint/api/endpoints/datasetsinfo_api.py,sha256=WdzrUzK63w9gvAP6U--P65FbD-3X-jm9TPCcYnRNjas,597
|
|
11
11
|
datamint/api/endpoints/models_api.py,sha256=tbVuajc-mCsIp5AKSCoq3uQRDWgKnJaIA6tf_ck8-XY,1502
|
|
12
12
|
datamint/api/endpoints/projects_api.py,sha256=Pfr3fEiMw_aRzoGtcVXHJQ68leVoPAghw23L4ZIglno,8237
|
|
13
|
-
datamint/api/endpoints/resources_api.py,sha256=
|
|
13
|
+
datamint/api/endpoints/resources_api.py,sha256=ZsGy4xTdLHLkM2z8VyRRLEjB0Rv3kTZFQceYkFYpk7A,50601
|
|
14
14
|
datamint/api/endpoints/users_api.py,sha256=pnkuTZ1B9Y0FtwwvXO8J64e02RSkRxnBmTl9UGSuC5I,1186
|
|
15
15
|
datamint/api/entity_base_api.py,sha256=-8SIt4M8P9G2b8SQznuWpFuFE8zEQjQxkRkw0s_w0Y4,11692
|
|
16
16
|
datamint/apihandler/annotation_api_handler.py,sha256=W3vV4z3BqX1OQe1r7zr8dI-IVu4zUDxED4QttdiWV-E,57098
|
|
@@ -48,7 +48,7 @@ datamint/types.py,sha256=2OaY5QJvQIJKxyMNJYzxBksKCa9ZS2gb_ayJrByvu2Y,410
|
|
|
48
48
|
datamint/utils/logging_utils.py,sha256=9pRoaPrWu2jOdDCiAoUsjEdP5ZwaealWL3hjUqFvx9g,4022
|
|
49
49
|
datamint/utils/torchmetrics.py,sha256=lwU0nOtsSWfebyp7dvjlAggaqXtj5ohSEUXOg3L0hJE,2837
|
|
50
50
|
datamint/utils/visualization.py,sha256=yaUVAOHar59VrGUjpAWv5eVvQSfztFG0eP9p5Vt3l-M,4470
|
|
51
|
-
datamint-2.3.
|
|
52
|
-
datamint-2.3.
|
|
53
|
-
datamint-2.3.
|
|
54
|
-
datamint-2.3.
|
|
51
|
+
datamint-2.3.5.dist-info/METADATA,sha256=Iu3geKgUkPz0cGntOO4i1Kdvf4i0UhAJeoxrNhKbuHs,4262
|
|
52
|
+
datamint-2.3.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
53
|
+
datamint-2.3.5.dist-info/entry_points.txt,sha256=mn5H6jPjO-rY0W0CAZ6Z_KKWhMLvyVaSpoqk77jlTI4,145
|
|
54
|
+
datamint-2.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|