deriva-ml 1.14.26__py3-none-any.whl → 1.14.27__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.
@@ -211,6 +211,7 @@ class Dataset:
211
211
  dataset_path.update([{"RID": dataset, "Version": version["RID"]} for dataset, version in versions.items()])
212
212
 
213
213
  def _set_version_snapshot(self):
214
+ """Update the Snapshot column of the Dataset_Version table to the correct time."""
214
215
  dataset_version_path = self._model.catalog.getPathBuilder().schemas[self._ml_schema].tables["Dataset_Version"]
215
216
  versions = dataset_version_path.entities().fetch()
216
217
  dataset_version_path.update(
@@ -1023,7 +1024,7 @@ class Dataset:
1023
1024
  self._logger.info(
1024
1025
  "Downloading dataset %s for catalog: %s@%s"
1025
1026
  % (
1026
- 'minid' if self._use_minid else 'bag',
1027
+ "minid" if self._use_minid else "bag",
1027
1028
  dataset.rid,
1028
1029
  str(dataset.version),
1029
1030
  )
@@ -305,14 +305,14 @@ class Workflow(BaseModel):
305
305
  is_notebook = False
306
306
  stack = inspect.stack()
307
307
  # Get the caller's filename, which is two up the stack from here.
308
- if len(stack) > 1:
309
- filename = Path(stack[2].filename)
310
- if not filename.exists():
311
- # Being called from the command line interpreter.
312
- filename = Path("REPL")
313
- # Get the caller's filename, which is two up the stack from here.
314
- else:
315
- raise DerivaMLException("Looking for caller failed") # Stack is too shallow
308
+
309
+ filename = Path(stack[-1].filename)
310
+ if not filename.exists():
311
+ # Being called from the command line interpreter.
312
+ filename = Path("REPL")
313
+ # Get the caller's filename, which is two up the stack from here.
314
+ else:
315
+ raise DerivaMLException("Looking for caller failed") # Stack is too shallow
316
316
  return filename, is_notebook
317
317
 
318
318
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deriva-ml
3
- Version: 1.14.26
3
+ Version: 1.14.27
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
@@ -12,7 +12,7 @@ deriva_ml/core/exceptions.py,sha256=4MZNPOyN-UMaGeY9sqJDVwh_iOmz1ntp4usSyCNqVMg,
12
12
  deriva_ml/core/filespec.py,sha256=BQAAcRXfXq1lDcsKlokLOOXCBtEZpPgXxrFOIZYAgLg,4229
13
13
  deriva_ml/dataset/__init__.py,sha256=ukl2laJqa9J2AVqb4zlpIYc-3RaAlfRR33NMIQaoNrQ,104
14
14
  deriva_ml/dataset/aux_classes.py,sha256=9mZAln7_rrzaRbKhKA6dJOp3xeD6dHOC9NXOtJKROo4,6933
15
- deriva_ml/dataset/dataset.py,sha256=FnQG98eEr7mnUmo1ySgVRxRoyhbP5u_ZxuexdAcYxJY,64305
15
+ deriva_ml/dataset/dataset.py,sha256=drL0YZovPpQC9G_eYe-fWuFQFysK2X-ad0vL4ZsYkf0,64396
16
16
  deriva_ml/dataset/dataset_bag.py,sha256=mPIZRX5aTbVRcJbCFtdkmlnexquF8NE-onbVK_8IxVk,14224
17
17
  deriva_ml/dataset/history.py,sha256=FK5AYYz11p4E4FWMVg4r7UPWOD4eobrq3b3xMjWF59g,3197
18
18
  deriva_ml/dataset/upload.py,sha256=Ad5JDfGvkIvefE-plP8SN9pNAxHzYrBoid5isz_bnNs,16411
@@ -20,7 +20,7 @@ deriva_ml/execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
20
20
  deriva_ml/execution/environment.py,sha256=B7nywqxFTRUWgyu8n7rFoKcVC9on422kjeFG2FPQfvg,9302
21
21
  deriva_ml/execution/execution.py,sha256=tXWkFLDoSre836x6MMkcmhtmr3zP5_VoSioQ72-XmvE,44298
22
22
  deriva_ml/execution/execution_configuration.py,sha256=Rw4VWkBCZN9yatvSKdTqEWTfu470lpcVKfHFR0uN0jI,6248
23
- deriva_ml/execution/workflow.py,sha256=fd8dwCyDSpW_BOD_d0-zFs9yTNrbddwqD-xG3rKdvyU,13215
23
+ deriva_ml/execution/workflow.py,sha256=k_VC0w9kQcg6qbP62DzZTEkuCIYQ6mdiyQ_rdZug7PY,13158
24
24
  deriva_ml/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  deriva_ml/model/catalog.py,sha256=dzTBcRlqgEVkPY32AUax_iu75RgFiT4Pu5au7rmrv8k,14068
26
26
  deriva_ml/model/database.py,sha256=cTe9rJHMCDo89_dmAT5aJGhzzLiK2DkXvCvZE6fczcM,14805
@@ -32,9 +32,9 @@ deriva_ml/schema/create_schema.py,sha256=0ydJSZEg3C3-m8hWPN6k2MoUvm-RWxAlKFzVChx
32
32
  deriva_ml/schema/deriva-ml-reference.json,sha256=AEOMIgwKO3dNMMWHb0lxaXyamvfAEbUPh8qw0aAtsUQ,242460
33
33
  deriva_ml/schema/policy.json,sha256=5ykB8nnZFl-oCHzlAwppCFKJHWJFIkYognUMVEanfY8,1826
34
34
  deriva_ml/schema/table_comments_utils.py,sha256=4flCqnZAaqg_uSZ9I18pNUWAZoLfmMCXbmI5uERY5vM,2007
35
- deriva_ml-1.14.26.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
- deriva_ml-1.14.26.dist-info/METADATA,sha256=nhgVSz2mmn24u8xsLlAQRu6wYa37-z4DJZNy3Fi8odM,1034
37
- deriva_ml-1.14.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- deriva_ml-1.14.26.dist-info/entry_points.txt,sha256=dkf_z7E4V6_3_5Xjsm0hcixNg6ASHDw6NfYQuBvF1Wc,363
39
- deriva_ml-1.14.26.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
40
- deriva_ml-1.14.26.dist-info/RECORD,,
35
+ deriva_ml-1.14.27.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
+ deriva_ml-1.14.27.dist-info/METADATA,sha256=_eaEMFf5odtaX7cqWgJS37zg_ZhKk8msSmLFJo_QCJ8,1034
37
+ deriva_ml-1.14.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ deriva_ml-1.14.27.dist-info/entry_points.txt,sha256=dkf_z7E4V6_3_5Xjsm0hcixNg6ASHDw6NfYQuBvF1Wc,363
39
+ deriva_ml-1.14.27.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
40
+ deriva_ml-1.14.27.dist-info/RECORD,,