deriva-ml 1.8.0__py3-none-any.whl → 1.8.1__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/VERSION.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.8.0"
1
+ __version__ = "1.8.1"
deriva_ml/dataset.py CHANGED
@@ -892,7 +892,7 @@ class Dataset:
892
892
  config_file=spec_file,
893
893
  output_dir=tmp_dir,
894
894
  defer_download=True,
895
- timeout=(10, 300),
895
+ timeout=(10, 610),
896
896
  envars={"Dataset_RID": dataset.rid},
897
897
  )
898
898
  minid_page_url = exporter.export()[0] # Get the MINID launch page
@@ -187,6 +187,14 @@ class DatasetSpec(BaseModel):
187
187
 
188
188
  model_config = ConfigDict(arbitrary_types_allowed=True)
189
189
 
190
+ @field_validator("version", mode="before")
191
+ @classmethod
192
+ def version_field_validator(cls, v: Any) -> Any:
193
+ if isinstance(v, dict):
194
+ return DatasetVersion(**v)
195
+ else:
196
+ return v
197
+
190
198
  @model_validator(mode="before")
191
199
  @classmethod
192
200
  def _check_bare_rid(cls, data: Any) -> dict[str, str | bool]:
deriva_ml/demo_catalog.py CHANGED
@@ -294,6 +294,7 @@ def create_demo_catalog(
294
294
  project_name=project_name,
295
295
  logging_level=logging.WARN,
296
296
  )
297
+ working_dir = deriva_ml.working_dir
297
298
  dataset_table = deriva_ml.dataset_table
298
299
  dataset_table.annotations.update(
299
300
  Dataset(
@@ -115,10 +115,12 @@ class DerivaML(Dataset):
115
115
  if working_dir
116
116
  else Path.home() / "deriva-ml"
117
117
  ) / default_workdir
118
+
118
119
  self.working_dir.mkdir(parents=True, exist_ok=True)
119
120
  self.cache_dir = (
120
121
  Path(cache_dir) if cache_dir else Path.home() / "deriva-ml" / "cache"
121
122
  )
123
+
122
124
  self.cache_dir.mkdir(parents=True, exist_ok=True)
123
125
 
124
126
  # Initialize dataset class.
@@ -1,12 +1,12 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
- from typing import Optional
4
+ from typing import Optional, Any
5
5
 
6
6
  from pydantic import (
7
7
  BaseModel,
8
8
  conlist,
9
- ConfigDict,
9
+ ConfigDict, field_validator,
10
10
  )
11
11
  from pathlib import Path
12
12
 
@@ -96,12 +96,12 @@ def execution_test(ml_instance):
96
96
  vc.workflow_type, "ML Demo", description="A ML Workflow that uses Deriva ML API"
97
97
  )
98
98
 
99
- api_workflow = Workflow(
99
+ api_workflow = ml_instance.add_workflow(Workflow(
100
100
  name="Manual Workflow",
101
101
  url="https://github.com/informatics-isi-edu/deriva-ml/blob/main/docs/Notebooks/DerivaML%20Execution.ipynb",
102
102
  workflow_type="Manual Workflow",
103
103
  description="A manual operation",
104
- )
104
+ ))
105
105
 
106
106
  manual_execution = ml_instance.create_execution(
107
107
  ExecutionConfiguration(description="Sample Execution", workflow=api_workflow)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: deriva-ml
3
- Version: 1.8.0
3
+ Version: 1.8.1
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.10
@@ -1,19 +1,19 @@
1
- deriva_ml/VERSION.py,sha256=Oc_xF94AMAHKZkZlB5rBt1iO0TXWFalg65MP4T2qt-A,22
1
+ deriva_ml/VERSION.py,sha256=6cud5pVpwnMsz6fxZVA6qWcQVSpLQXd0ddN6ip-1M_8,22
2
2
  deriva_ml/__init__.py,sha256=0PHNB8gRDALLtaffRmU7wCUgWbRHVQZcjuPJxMLNEco,856
3
3
  deriva_ml/database_model.py,sha256=uhoyVyd8MQmY8J9ovCH8fjxhZDxxXNkdJyYdeyEGPXA,13898
4
- deriva_ml/dataset.py,sha256=b0FqUHKsaIKyyjq3O_P9lSP5I5aWAkEDp4nrQn3rzqw,55524
5
- deriva_ml/dataset_aux_classes.py,sha256=8cnhVTuaIS7NdxF34oKvzH3U1Rx9sc6jiTC6vOmAPF0,6313
4
+ deriva_ml/dataset.py,sha256=f6eFgaTYjW-iZwqpVPZH9hSOmZP2C4_elkWhtLOjW9E,55524
5
+ deriva_ml/dataset_aux_classes.py,sha256=YxjQnu2kS9kK_f8bGqhmgE6ty9GNeitCxfvReT9vaM0,6537
6
6
  deriva_ml/dataset_bag.py,sha256=e6IHv3saZUnZRfl0EjfnlV2NnmPeOagYYv3PuZqS1l0,11501
7
- deriva_ml/demo_catalog.py,sha256=eWUiQ1DMkMXFZEYqCGVlLJHOZd7uE5L6-Zr3kl8YUI0,11001
7
+ deriva_ml/demo_catalog.py,sha256=xQPhFlflqwJskNQrQ-jdBSnGzBm2-aONBgcRxfsdNKM,11045
8
8
  deriva_ml/deriva_definitions.py,sha256=MGl29ogCzqrlRilMhSuR5tECo4NSHP4CLbJAXRtPH6E,8914
9
- deriva_ml/deriva_ml_base.py,sha256=GFz6SSjcwFt5KdJyWb7kcjr1srZjyQtanpdo81LlXCI,36441
9
+ deriva_ml/deriva_ml_base.py,sha256=ShDZlG9F4XrGRUcUINT3bb_P_UdvV1FqSnnPsjGTCLU,36443
10
10
  deriva_ml/deriva_model.py,sha256=F5zDw-MDV55POAjKB6dorpa7P4KTSN9hjDCN4E9zB9A,11986
11
11
  deriva_ml/execution.py,sha256=UcXWY1W5Mt_Yzuayd3Pjd-lKzLlMV5QXZFcLvE6Lt0E,28390
12
- deriva_ml/execution_configuration.py,sha256=PeBB4ZOcZwwMeRpg0QR1sCKD2AwSYdpzIl_PcVllYc0,3678
12
+ deriva_ml/execution_configuration.py,sha256=nMeaG1qYdIgu4BV5atSUlcL8VZ3O6ohGY5iBhtD_LQ4,3700
13
13
  deriva_ml/execution_environment.py,sha256=bCRKrCELDbGQDo7_FKfw7e8iMzVjSRZK3baKkqH5-_0,3264
14
14
  deriva_ml/feature.py,sha256=7e8WYPCfJSrGxJh9oUTduYSnB5ekybRhXa_0HIigS_w,5459
15
15
  deriva_ml/history.py,sha256=qTDLDs8Ow_6r7mDO0gZm0Fg81SWKOAgtCU5pzZoDRgM,2828
16
- deriva_ml/test_functions.py,sha256=stunfznC759qCrhUBVeymDNBikrfBhqe4pLTw8p6PzA,4370
16
+ deriva_ml/test_functions.py,sha256=-eqLHjjCQCLBNAr1ofbZekNiCOfMISSACRxT_YHER8I,4396
17
17
  deriva_ml/upload.py,sha256=HCOChW6bALW_gt0sWUs_81bNPsb72TNs4o0FQsGSLM4,22222
18
18
  deriva_ml/build/lib/schema_setup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  deriva_ml/build/lib/schema_setup/alter_annotation.py,sha256=pkwk0WystN69JfAFK4iBJZAZVQKbRs-gN9IFYuS9rfg,1739
@@ -26,9 +26,9 @@ deriva_ml/schema_setup/annotations.py,sha256=Uogm9YkRtoKSdgfQlICqRywbCATppwBO-Xr
26
26
  deriva_ml/schema_setup/create_schema.py,sha256=jwziMWJPbjRgjiRBT-KtidnXI8YNEFO74A9fwfptjHY,10626
27
27
  deriva_ml/schema_setup/policy.json,sha256=77sf0Imy6CAQV0_VwwbA56_KROJ05WXsvT-Wjtkk538,1633
28
28
  deriva_ml/schema_setup/table_comments_utils.py,sha256=-2_ubEpoH7ViLVb-ZfW9wZbQ26DTKNgjkCABMzGu4i4,2140
29
- deriva_ml-1.8.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- deriva_ml-1.8.0.dist-info/METADATA,sha256=X_PTMVr4ZhOe7XBaEKWk2nPRpfvB3ayZIK5MRdPjQV8,556
31
- deriva_ml-1.8.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
32
- deriva_ml-1.8.0.dist-info/entry_points.txt,sha256=ZiOvrYj022x544TQwi018ujeHRRDahNmwJnzn5ThacM,242
33
- deriva_ml-1.8.0.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
34
- deriva_ml-1.8.0.dist-info/RECORD,,
29
+ deriva_ml-1.8.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ deriva_ml-1.8.1.dist-info/METADATA,sha256=wIwGjDbMrZ88z1y2ohD8vXJQliQLSPmKRoLO86l6c8c,556
31
+ deriva_ml-1.8.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
32
+ deriva_ml-1.8.1.dist-info/entry_points.txt,sha256=ZiOvrYj022x544TQwi018ujeHRRDahNmwJnzn5ThacM,242
33
+ deriva_ml-1.8.1.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
34
+ deriva_ml-1.8.1.dist-info/RECORD,,