deriva-ml 1.17.0__py3-none-any.whl → 1.17.2__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.
@@ -3,7 +3,7 @@ THis module defines the DataSet class with is used to manipulate n
3
3
  """
4
4
 
5
5
  from enum import Enum
6
- from typing import Any, Optional, SupportsInt, overload
6
+ from typing import Any, Optional, SupportsInt
7
7
 
8
8
  from hydra_zen import hydrated_dataclass
9
9
  from pydantic import (
@@ -43,9 +43,6 @@ class DatasetVersion(Version):
43
43
  replace(major, minor, patch): Replace the major and minor versions
44
44
  """
45
45
 
46
- @overload
47
- def __init__(self, version: str): ...
48
- @overload
49
46
  def __init__(self, major: SupportsInt, minor: SupportsInt = 0, patch: SupportsInt = 0):
50
47
  """Initialize a DatasetVersion object.
51
48
 
@@ -54,21 +51,6 @@ class DatasetVersion(Version):
54
51
  minor: Minor version number. Used to indicate additional members added, or change in member values.
55
52
  patch: Patch number of the dataset. Used to indicate minor clean-up and edits
56
53
  """
57
- ...
58
-
59
- def __init__(self, *args):
60
- """Initialize a DatasetVersion object.
61
-
62
- Args:
63
- major: Major version number. Used to indicate schema changes.
64
- minor: Minor version number. Used to indicate additional members added, or change in member values.
65
- patch: Patch number of the dataset. Used to indicate minor clean-up and edits
66
- """
67
- if len(args) == 1 and isinstance(args[0], str):
68
- v = Version.parse(args[0])
69
- major, minor, patch = v.major, v.minor, v.patch
70
- else:
71
- major, minor, patch = args
72
54
  super().__init__(major, minor, patch)
73
55
 
74
56
  def to_dict(self) -> dict[str, Any]:
@@ -123,12 +105,16 @@ class DatasetHistory(BaseModel):
123
105
  dataset_rid: RID
124
106
  version_rid: RID
125
107
  execution_rid: Optional[RID] = None
126
- description: str = ""
127
- minid: Optional[str] = None
128
- snapshot: Optional[str] = None
108
+ description: str | None = ""
109
+ minid: str | None = None
110
+ snapshot: str | None = None
129
111
 
130
112
  model_config = ConfigDict(arbitrary_types_allowed=True)
131
113
 
114
+ @field_validator("description", mode="after")
115
+ def _default_description(cls, v) -> str:
116
+ return v or ""
117
+
132
118
 
133
119
  class DatasetMinid(BaseModel):
134
120
  """Represent information about a MINID that refers to a dataset
@@ -1100,7 +1100,7 @@ class Execution:
1100
1100
  description: Description of the files.
1101
1101
 
1102
1102
  Returns:
1103
- RID: Dataset RID that identifes newly added files. Will be nested to mirror origioanl directory structure
1103
+ RID: Dataset RID that identifies newly added files. Will be nested to mirror original directory structure
1104
1104
  of the files.
1105
1105
 
1106
1106
  Raises:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deriva-ml
3
- Version: 1.17.0
3
+ Version: 1.17.2
4
4
  Summary: Utilities to simplify use of Dervia and Pandas to create reproducable ML pipelines
5
5
  Author-email: ISRD <isrd-dev@isi.edu>
6
6
  Requires-Python: >=3.11
@@ -16,14 +16,14 @@ deriva_ml/core/ermrest.py,sha256=N0IJ3TE87jElaBChEIo5AFDTr0SIrb6F90yiimRfPr4,101
16
16
  deriva_ml/core/exceptions.py,sha256=4MZNPOyN-UMaGeY9sqJDVwh_iOmz1ntp4usSyCNqVMg,934
17
17
  deriva_ml/core/filespec.py,sha256=BQAAcRXfXq1lDcsKlokLOOXCBtEZpPgXxrFOIZYAgLg,4229
18
18
  deriva_ml/dataset/__init__.py,sha256=wTCQaWGfRYEiUoOOxerKSpkbl1T5YFhoCyemlxGTk8k,283
19
- deriva_ml/dataset/aux_classes.py,sha256=ojqe7gyK4KQVz_xfIillXS_HJ1PMsyr47pb2tFOXO_c,7855
19
+ deriva_ml/dataset/aux_classes.py,sha256=e0D83IEDvsSIx79lKoCsD-CcIFmnoinNtzvpdMMQ80E,7291
20
20
  deriva_ml/dataset/dataset.py,sha256=d860WuCL0-Pz6TyRpGVzhpPWDMco01-I5LT4dZjYxsQ,64728
21
21
  deriva_ml/dataset/dataset_bag.py,sha256=ori3BuYVqfeHkVCjNSKuZh7oMdC6uufsszicpTPODiw,19944
22
22
  deriva_ml/dataset/history.py,sha256=FK5AYYz11p4E4FWMVg4r7UPWOD4eobrq3b3xMjWF59g,3197
23
23
  deriva_ml/dataset/upload.py,sha256=n1aXSbOx1hghCDxuF8yf03jZmOLMueXL-rSnQMrfHq0,16535
24
24
  deriva_ml/execution/__init__.py,sha256=5kKpPwQbxhmRn7Npz7DpavuCxYwCQaDdl4-6z62hbds,705
25
25
  deriva_ml/execution/environment.py,sha256=B7nywqxFTRUWgyu8n7rFoKcVC9on422kjeFG2FPQfvg,9302
26
- deriva_ml/execution/execution.py,sha256=hNBfYnqXK4PmNS2wxbJ5oYzjDszjaiGHo8d3uxmIgPk,46210
26
+ deriva_ml/execution/execution.py,sha256=Gwrj2ICOH6ZsysM1aHCofBD_AwPgqjDemffHzY300tg,46210
27
27
  deriva_ml/execution/execution_configuration.py,sha256=RT0x9n0uyJgEsrLCUTu16nAUJN7X-XLDvfezln0PTDQ,5775
28
28
  deriva_ml/execution/workflow.py,sha256=rTlspICp2Q6prUwPCeukjhO64rbcJivcFs4zH60B16U,13906
29
29
  deriva_ml/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -37,9 +37,9 @@ deriva_ml/schema/create_schema.py,sha256=9qK9_8SRQT-DwcEwTGSkhi3j2NaoH5EVgthvV2k
37
37
  deriva_ml/schema/deriva-ml-reference.json,sha256=AEOMIgwKO3dNMMWHb0lxaXyamvfAEbUPh8qw0aAtsUQ,242460
38
38
  deriva_ml/schema/policy.json,sha256=5ykB8nnZFl-oCHzlAwppCFKJHWJFIkYognUMVEanfY8,1826
39
39
  deriva_ml/schema/table_comments_utils.py,sha256=4flCqnZAaqg_uSZ9I18pNUWAZoLfmMCXbmI5uERY5vM,2007
40
- deriva_ml-1.17.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
- deriva_ml-1.17.0.dist-info/METADATA,sha256=gvz8ApFj8xylH1r4Nr-X_QiHChj6wRNJE7pLzI2sB8E,1272
42
- deriva_ml-1.17.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- deriva_ml-1.17.0.dist-info/entry_points.txt,sha256=XsHSbfp7S1cKMjHoPUdFIaFcp9lHXHS6CV1zb_MEXkg,463
44
- deriva_ml-1.17.0.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
45
- deriva_ml-1.17.0.dist-info/RECORD,,
40
+ deriva_ml-1.17.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
+ deriva_ml-1.17.2.dist-info/METADATA,sha256=kBjucGR6nFW84qfxY8z34Xsz4XxMv9ljmFCoxFwwYA8,1272
42
+ deriva_ml-1.17.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
+ deriva_ml-1.17.2.dist-info/entry_points.txt,sha256=XsHSbfp7S1cKMjHoPUdFIaFcp9lHXHS6CV1zb_MEXkg,463
44
+ deriva_ml-1.17.2.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
45
+ deriva_ml-1.17.2.dist-info/RECORD,,