datamint 1.7.1__tar.gz → 1.7.2__tar.gz

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.

Files changed (27) hide show
  1. {datamint-1.7.1 → datamint-1.7.2}/PKG-INFO +1 -1
  2. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/root_api_handler.py +3 -1
  3. {datamint-1.7.1 → datamint-1.7.2}/pyproject.toml +1 -1
  4. {datamint-1.7.1 → datamint-1.7.2}/README.md +0 -0
  5. {datamint-1.7.1 → datamint-1.7.2}/datamint/__init__.py +0 -0
  6. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/annotation_api_handler.py +0 -0
  7. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/api_handler.py +0 -0
  8. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/base_api_handler.py +0 -0
  9. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/dto/annotation_dto.py +0 -0
  10. {datamint-1.7.1 → datamint-1.7.2}/datamint/apihandler/exp_api_handler.py +0 -0
  11. {datamint-1.7.1 → datamint-1.7.2}/datamint/client_cmd_tools/__init__.py +0 -0
  12. {datamint-1.7.1 → datamint-1.7.2}/datamint/client_cmd_tools/datamint_config.py +0 -0
  13. {datamint-1.7.1 → datamint-1.7.2}/datamint/client_cmd_tools/datamint_upload.py +0 -0
  14. {datamint-1.7.1 → datamint-1.7.2}/datamint/configs.py +0 -0
  15. {datamint-1.7.1 → datamint-1.7.2}/datamint/dataset/__init__.py +0 -0
  16. {datamint-1.7.1 → datamint-1.7.2}/datamint/dataset/annotation.py +0 -0
  17. {datamint-1.7.1 → datamint-1.7.2}/datamint/dataset/base_dataset.py +0 -0
  18. {datamint-1.7.1 → datamint-1.7.2}/datamint/dataset/dataset.py +0 -0
  19. {datamint-1.7.1 → datamint-1.7.2}/datamint/examples/__init__.py +0 -0
  20. {datamint-1.7.1 → datamint-1.7.2}/datamint/examples/example_projects.py +0 -0
  21. {datamint-1.7.1 → datamint-1.7.2}/datamint/experiment/__init__.py +0 -0
  22. {datamint-1.7.1 → datamint-1.7.2}/datamint/experiment/_patcher.py +0 -0
  23. {datamint-1.7.1 → datamint-1.7.2}/datamint/experiment/experiment.py +0 -0
  24. {datamint-1.7.1 → datamint-1.7.2}/datamint/logging.yaml +0 -0
  25. {datamint-1.7.1 → datamint-1.7.2}/datamint/utils/logging_utils.py +0 -0
  26. {datamint-1.7.1 → datamint-1.7.2}/datamint/utils/torchmetrics.py +0 -0
  27. {datamint-1.7.1 → datamint-1.7.2}/datamint/utils/visualization.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: datamint
3
- Version: 1.7.1
3
+ Version: 1.7.2
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
@@ -380,6 +380,8 @@ class RootAPIHandler(BaseAPIHandler):
380
380
  return False
381
381
 
382
382
  ds = pydicom.dcmread(file_path, stop_before_pixels=True)
383
+ if hasattr(file_path, 'seek'):
384
+ file_path.seek(0)
383
385
  modality = getattr(ds, 'Modality', None)
384
386
 
385
387
  # Common report modalities
@@ -387,7 +389,7 @@ class RootAPIHandler(BaseAPIHandler):
387
389
 
388
390
  return modality in report_modalities
389
391
  except Exception as e:
390
- _LOGGER.debug(f"Error checking if DICOM is a report: {e}")
392
+ _LOGGER.warning(f"Error checking if DICOM is a report: {e}")
391
393
  return False
392
394
 
393
395
  def upload_resources(self,
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "datamint"
3
3
  description = "A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows."
4
- version = "1.7.1"
4
+ version = "1.7.2"
5
5
  dynamic = ["dependencies"]
6
6
  requires-python = ">=3.10"
7
7
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes