datamint 2.4.1__tar.gz → 2.4.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 (67) hide show
  1. {datamint-2.4.1 → datamint-2.4.2}/PKG-INFO +1 -1
  2. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/annotations_api.py +0 -1
  3. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/resources_api.py +6 -3
  4. datamint-2.4.2/datamint/client_cmd_tools/__init__.py +0 -0
  5. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/resource.py +1 -5
  6. {datamint-2.4.1 → datamint-2.4.2}/pyproject.toml +1 -1
  7. datamint-2.4.1/datamint/api/__init__.py +0 -3
  8. {datamint-2.4.1 → datamint-2.4.2}/README.md +0 -0
  9. {datamint-2.4.1 → datamint-2.4.2}/datamint/__init__.py +0 -0
  10. {datamint-2.4.1/datamint/apihandler/dto → datamint-2.4.2/datamint/api}/__init__.py +0 -0
  11. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/base_api.py +0 -0
  12. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/client.py +0 -0
  13. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/dto/__init__.py +0 -0
  14. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/__init__.py +0 -0
  15. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/annotationsets_api.py +0 -0
  16. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/channels_api.py +0 -0
  17. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/datasetsinfo_api.py +0 -0
  18. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/models_api.py +0 -0
  19. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/projects_api.py +0 -0
  20. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/endpoints/users_api.py +0 -0
  21. {datamint-2.4.1 → datamint-2.4.2}/datamint/api/entity_base_api.py +0 -0
  22. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/annotation_api_handler.py +0 -0
  23. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/api_handler.py +0 -0
  24. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/base_api_handler.py +0 -0
  25. {datamint-2.4.1/datamint/client_cmd_tools → datamint-2.4.2/datamint/apihandler/dto}/__init__.py +0 -0
  26. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/dto/annotation_dto.py +0 -0
  27. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/exp_api_handler.py +0 -0
  28. {datamint-2.4.1 → datamint-2.4.2}/datamint/apihandler/root_api_handler.py +0 -0
  29. {datamint-2.4.1 → datamint-2.4.2}/datamint/client_cmd_tools/datamint_config.py +0 -0
  30. {datamint-2.4.1 → datamint-2.4.2}/datamint/client_cmd_tools/datamint_upload.py +0 -0
  31. {datamint-2.4.1 → datamint-2.4.2}/datamint/configs.py +0 -0
  32. {datamint-2.4.1 → datamint-2.4.2}/datamint/dataset/__init__.py +0 -0
  33. {datamint-2.4.1 → datamint-2.4.2}/datamint/dataset/annotation.py +0 -0
  34. {datamint-2.4.1 → datamint-2.4.2}/datamint/dataset/base_dataset.py +0 -0
  35. {datamint-2.4.1 → datamint-2.4.2}/datamint/dataset/dataset.py +0 -0
  36. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/__init__.py +0 -0
  37. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/annotation.py +0 -0
  38. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/base_entity.py +0 -0
  39. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/cache_manager.py +0 -0
  40. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/channel.py +0 -0
  41. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/datasetinfo.py +0 -0
  42. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/project.py +0 -0
  43. {datamint-2.4.1 → datamint-2.4.2}/datamint/entities/user.py +0 -0
  44. {datamint-2.4.1 → datamint-2.4.2}/datamint/examples/__init__.py +0 -0
  45. {datamint-2.4.1 → datamint-2.4.2}/datamint/examples/example_projects.py +0 -0
  46. {datamint-2.4.1 → datamint-2.4.2}/datamint/exceptions.py +0 -0
  47. {datamint-2.4.1 → datamint-2.4.2}/datamint/experiment/__init__.py +0 -0
  48. {datamint-2.4.1 → datamint-2.4.2}/datamint/experiment/_patcher.py +0 -0
  49. {datamint-2.4.1 → datamint-2.4.2}/datamint/experiment/experiment.py +0 -0
  50. {datamint-2.4.1 → datamint-2.4.2}/datamint/lightning/__init__.py +0 -0
  51. {datamint-2.4.1 → datamint-2.4.2}/datamint/lightning/datamintdatamodule.py +0 -0
  52. {datamint-2.4.1 → datamint-2.4.2}/datamint/logging.yaml +0 -0
  53. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/__init__.py +0 -0
  54. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/artifact/__init__.py +0 -0
  55. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/artifact/datamint_artifacts_repo.py +0 -0
  56. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/env_utils.py +0 -0
  57. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/env_vars.py +0 -0
  58. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/lightning/callbacks/__init__.py +0 -0
  59. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/lightning/callbacks/modelcheckpoint.py +0 -0
  60. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/models/__init__.py +0 -0
  61. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/tracking/datamint_store.py +0 -0
  62. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/tracking/default_experiment.py +0 -0
  63. {datamint-2.4.1 → datamint-2.4.2}/datamint/mlflow/tracking/fluent.py +0 -0
  64. {datamint-2.4.1 → datamint-2.4.2}/datamint/types.py +0 -0
  65. {datamint-2.4.1 → datamint-2.4.2}/datamint/utils/logging_utils.py +0 -0
  66. {datamint-2.4.1 → datamint-2.4.2}/datamint/utils/torchmetrics.py +0 -0
  67. {datamint-2.4.1 → datamint-2.4.2}/datamint/utils/visualization.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datamint
3
- Version: 2.4.1
3
+ Version: 2.4.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
@@ -6,7 +6,6 @@ from ..entity_base_api import ApiConfig, CreatableEntityApi, DeletableEntityApi
6
6
  from .models_api import ModelsApi
7
7
  from datamint.entities.annotation import Annotation
8
8
  from datamint.entities.resource import Resource
9
- from datamint.entities.project import Project
10
9
  from datamint.api.dto import AnnotationType, CreateAnnotationDto, LineGeometry, BoxGeometry, CoordinateSystem, Geometry
11
10
  import numpy as np
12
11
  import os
@@ -2,9 +2,9 @@ from typing import Any, Optional, Sequence, TypeAlias, Literal, IO
2
2
  from ..base_api import ApiConfig, BaseApi
3
3
  from ..entity_base_api import CreatableEntityApi, DeletableEntityApi
4
4
  from datamint.entities.resource import Resource
5
- from datamint.entities.project import Project
6
5
  from datamint.entities.annotation import Annotation
7
6
  from datamint.exceptions import DatamintException, ResourceNotFoundError
7
+ from datamint.api.dto import AnnotationType
8
8
  import httpx
9
9
  from datetime import date
10
10
  import json
@@ -147,7 +147,8 @@ class ResourcesApi(CreatableEntityApi[Resource], DeletableEntityApi[Resource]):
147
147
 
148
148
  return super().get_list(limit=limit, params=payload)
149
149
 
150
- def get_annotations(self, resource: str | Resource) -> Sequence[Annotation]:
150
+ def get_annotations(self, resource: str | Resource,
151
+ annotation_type: AnnotationType | str | None = None) -> Sequence[Annotation]:
151
152
  """Get annotations for a specific resource.
152
153
 
153
154
  Args:
@@ -156,7 +157,9 @@ class ResourcesApi(CreatableEntityApi[Resource], DeletableEntityApi[Resource]):
156
157
  Returns:
157
158
  A sequence of Annotation objects associated with the specified resource.
158
159
  """
159
- return self.annotations_api.get_list(resource=resource)
160
+ return self.annotations_api.get_list(resource=resource,
161
+ load_ai_segmentations=True,
162
+ annotation_type=annotation_type)
160
163
 
161
164
  @staticmethod
162
165
  def __process_files_parameter(file_path: str | Sequence[str | IO | pydicom.Dataset]
File without changes
@@ -176,11 +176,7 @@ class Resource(BaseEntity):
176
176
  ) -> Sequence['Annotation']:
177
177
  """Get annotations associated with this resource."""
178
178
 
179
- annotations = self._api.get_annotations(self)
180
-
181
- if annotation_type:
182
- annotation_type = AnnotationType(annotation_type)
183
- annotations = [a for a in annotations if a.annotation_type == annotation_type]
179
+ annotations = self._api.get_annotations(self, annotation_type=annotation_type)
184
180
  return annotations
185
181
 
186
182
  # def get_projects(
@@ -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 = "2.4.1"
4
+ version = "2.4.2"
5
5
  dynamic = ["dependencies"]
6
6
  requires-python = ">=3.10"
7
7
  readme = "README.md"
@@ -1,3 +0,0 @@
1
- from .client import Api
2
-
3
- __all__ = ['Api']
File without changes
File without changes
File without changes
File without changes
File without changes