deriva-ml 1.17.1__py3-none-any.whl → 1.17.3__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.
deriva_ml/core/base.py CHANGED
@@ -19,7 +19,8 @@ import logging
19
19
  from datetime import datetime
20
20
  from itertools import chain
21
21
  from pathlib import Path
22
- from typing import Dict, Iterable, List, cast, TYPE_CHECKING, Any, Self
22
+ from typing import Dict, Iterable, List, cast, TYPE_CHECKING, Any
23
+ from typing_extensions import Self
23
24
  from urllib.parse import urlsplit
24
25
 
25
26
 
@@ -105,12 +105,16 @@ class DatasetHistory(BaseModel):
105
105
  dataset_rid: RID
106
106
  version_rid: RID
107
107
  execution_rid: Optional[RID] = None
108
- description: str = ""
109
- minid: Optional[str] = None
110
- snapshot: Optional[str] = None
108
+ description: str | None = ""
109
+ minid: str | None = None
110
+ snapshot: str | None = None
111
111
 
112
112
  model_config = ConfigDict(arbitrary_types_allowed=True)
113
113
 
114
+ @field_validator("description", mode="after")
115
+ def _default_description(cls, v) -> str:
116
+ return v or ""
117
+
114
118
 
115
119
  class DatasetMinid(BaseModel):
116
120
  """Represent information about a MINID that refers to a dataset
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deriva-ml
3
- Version: 1.17.1
3
+ Version: 1.17.3
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
- Requires-Python: >=3.11
6
+ Requires-Python: >=3.10
7
7
  Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
9
9
  Requires-Dist: bump-my-version
@@ -7,7 +7,7 @@ deriva_ml/install_kernel.py,sha256=b62XY0SLViYO_Zye5r1Pl9qhYZyu_fk4KAO8NS1pxgM,2
7
7
  deriva_ml/run_notebook.py,sha256=_pds1q3WcfWqhCBqKeznbwSv5n7OND8FkL6JQ2Jkfmc,8093
8
8
  deriva_ml/test.py,sha256=BqmQXR9IyQP9h8pWttk0dzyJod2CwcfYbSUZS-Q5r4k,4460
9
9
  deriva_ml/core/__init__.py,sha256=Ko8GsWc7K_eDFW0-GaNS6gOWYP8cWHWir-ChSQaHntE,856
10
- deriva_ml/core/base.py,sha256=KzZW310J0YmvCUhuCWxd42LNCM_JSzR__ObtT7zgcsU,62525
10
+ deriva_ml/core/base.py,sha256=zTOxrAonj59hKqaaMvsIbvBEHrCkpdIUZfGi4q_6qks,62554
11
11
  deriva_ml/core/config.py,sha256=dF4rOLFmbk1DEkQimqbiH4pC519nRZWpwKItARNMiZ4,2244
12
12
  deriva_ml/core/constants.py,sha256=6wBJ8qMxe-dbCjRGrjUIX-RK0mTWrLDTeUpaVbLFoM8,888
13
13
  deriva_ml/core/definitions.py,sha256=uq_8uYFBVBVHS691Ri2kdQsN37z0GNYTaZskJIb_ocM,1385
@@ -16,7 +16,7 @@ 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=4m1XrKOvStRW2Esmp5mv9xxQyliV5KqYGd4clSmCSz8,7171
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
@@ -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.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
- deriva_ml-1.17.1.dist-info/METADATA,sha256=qcweWrGkXmnS8FXXaPOHlONbuPHjhIFJzKUSrz6FgqQ,1272
42
- deriva_ml-1.17.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- deriva_ml-1.17.1.dist-info/entry_points.txt,sha256=XsHSbfp7S1cKMjHoPUdFIaFcp9lHXHS6CV1zb_MEXkg,463
44
- deriva_ml-1.17.1.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
45
- deriva_ml-1.17.1.dist-info/RECORD,,
40
+ deriva_ml-1.17.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
+ deriva_ml-1.17.3.dist-info/METADATA,sha256=_-xDLOnjctq5V0U60iduW-vrjo5j4pGaAsY0eyEUQX8,1272
42
+ deriva_ml-1.17.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
+ deriva_ml-1.17.3.dist-info/entry_points.txt,sha256=XsHSbfp7S1cKMjHoPUdFIaFcp9lHXHS6CV1zb_MEXkg,463
44
+ deriva_ml-1.17.3.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
45
+ deriva_ml-1.17.3.dist-info/RECORD,,