deriva-ml 1.14.43__py3-none-any.whl → 1.14.44__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/dataset/dataset.py +4 -4
- deriva_ml/dataset/upload.py +0 -2
- deriva_ml/run_notebook.py +12 -7
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/METADATA +1 -1
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/RECORD +9 -9
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/WHEEL +0 -0
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/entry_points.txt +0 -0
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/licenses/LICENSE +0 -0
- {deriva_ml-1.14.43.dist-info → deriva_ml-1.14.44.dist-info}/top_level.txt +0 -0
deriva_ml/dataset/dataset.py
CHANGED
|
@@ -1289,8 +1289,8 @@ class Dataset:
|
|
|
1289
1289
|
{
|
|
1290
1290
|
"processor": "fetch",
|
|
1291
1291
|
"processor_params": {
|
|
1292
|
-
"query_path": f"/attribute/{spath}/!(URL::null::)/url:=URL,length:=Length,filename:=Filename,md5:=MD5",
|
|
1293
|
-
"output_path":
|
|
1292
|
+
"query_path": f"/attribute/{spath}/!(URL::null::)/url:=URL,length:=Length,filename:=Filename,md5:=MD5,asset_rid:=RID",
|
|
1293
|
+
"output_path": "asset/{asset_rid}/" + table.name,
|
|
1294
1294
|
},
|
|
1295
1295
|
}
|
|
1296
1296
|
)
|
|
@@ -1341,9 +1341,9 @@ class Dataset:
|
|
|
1341
1341
|
"source": {
|
|
1342
1342
|
"skip_root_path": False,
|
|
1343
1343
|
"api": "attribute",
|
|
1344
|
-
"path": f"{spath}/!(URL::null::)/url:=URL,length:=Length,filename:=Filename,md5:=MD5",
|
|
1344
|
+
"path": f"{spath}/!(URL::null::)/url:=URL,length:=Length,filename:=Filename,md5:=MD5, asset_rid:=RID",
|
|
1345
1345
|
},
|
|
1346
|
-
"destination": {"name":
|
|
1346
|
+
"destination": {"name": "asset/{asset_rid}/" + table.name, "type": "fetch"},
|
|
1347
1347
|
}
|
|
1348
1348
|
)
|
|
1349
1349
|
return exports
|
deriva_ml/dataset/upload.py
CHANGED
|
@@ -296,7 +296,6 @@ def upload_directory(model: DerivaModel, directory: Path | str) -> dict[Any, Fil
|
|
|
296
296
|
|
|
297
297
|
with spec_file.open("w+") as cfile:
|
|
298
298
|
json.dump(bulk_upload_configuration(model), cfile)
|
|
299
|
-
print("Creating GenericUploader...")
|
|
300
299
|
uploader = GenericUploader(
|
|
301
300
|
server={
|
|
302
301
|
"host": model.hostname,
|
|
@@ -318,7 +317,6 @@ def upload_directory(model: DerivaModel, directory: Path | str) -> dict[Any, Fil
|
|
|
318
317
|
}
|
|
319
318
|
finally:
|
|
320
319
|
uploader.cleanup()
|
|
321
|
-
print(f"Cleanup called...{uploader}")
|
|
322
320
|
return results
|
|
323
321
|
|
|
324
322
|
|
deriva_ml/run_notebook.py
CHANGED
|
@@ -10,7 +10,7 @@ import nbformat
|
|
|
10
10
|
import papermill as pm
|
|
11
11
|
import regex as re
|
|
12
12
|
from deriva.core import BaseCLI
|
|
13
|
-
from nbconvert import
|
|
13
|
+
from nbconvert import MarkdownExporter
|
|
14
14
|
|
|
15
15
|
from deriva_ml import DerivaML, ExecAssetType, Execution, ExecutionConfiguration, MLAsset, Workflow
|
|
16
16
|
|
|
@@ -157,11 +157,16 @@ class DerivaMLRunNotebookCLI(BaseCLI):
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
# Generate an HTML version of the output notebook.
|
|
160
|
+
notebook_output_md = notebook_output.with_suffix(".md")
|
|
161
|
+
with notebook_output.open() as f:
|
|
162
|
+
nb = nbformat.read(f, as_version=4)
|
|
163
|
+
# Convert to Markdown
|
|
164
|
+
exporter = MarkdownExporter()
|
|
165
|
+
(body, resources) = exporter.from_notebook_node(nb)
|
|
166
|
+
|
|
167
|
+
with notebook_output_md.open("w") as f:
|
|
168
|
+
f.write(body)
|
|
160
169
|
nb = nbformat.read(notebook_output, as_version=4)
|
|
161
|
-
html_exporter = HTMLExporter(template_name="classic")
|
|
162
|
-
body, resources = html_exporter.from_notebook_node(nb)
|
|
163
|
-
notebook_output_html = notebook_output.with_suffix(".html")
|
|
164
|
-
notebook_output_html.write_text(body, encoding="utf-8")
|
|
165
170
|
|
|
166
171
|
execution.asset_file_path(
|
|
167
172
|
asset_name=MLAsset.execution_asset,
|
|
@@ -171,12 +176,12 @@ class DerivaMLRunNotebookCLI(BaseCLI):
|
|
|
171
176
|
|
|
172
177
|
execution.asset_file_path(
|
|
173
178
|
asset_name=MLAsset.execution_asset,
|
|
174
|
-
file_name=
|
|
179
|
+
file_name=notebook_output_md,
|
|
175
180
|
asset_types=ExecAssetType.notebook_output,
|
|
176
181
|
)
|
|
177
182
|
execution.asset_file_path(
|
|
178
183
|
asset_name=MLAsset.execution_asset,
|
|
179
|
-
file_name=
|
|
184
|
+
file_name=notebook_output_md,
|
|
180
185
|
asset_types=ExecAssetType.notebook_output,
|
|
181
186
|
)
|
|
182
187
|
print("parameter....")
|
|
@@ -3,7 +3,7 @@ deriva_ml/bump_version.py,sha256=KpHmkpEztly2QHYL4dyaIGdEMyP4F0D89rawyh5EDTs,398
|
|
|
3
3
|
deriva_ml/demo_catalog.py,sha256=JjPAIac_hKPh5krEhGJydjXquRnivi7kQoR8W4Khp-s,14928
|
|
4
4
|
deriva_ml/feature.py,sha256=6-aphkxdKjWa9oPSGFWxHcwAc_8hmWj-7I4M178YG5Y,8470
|
|
5
5
|
deriva_ml/install_kernel.py,sha256=b62XY0SLViYO_Zye5r1Pl9qhYZyu_fk4KAO8NS1pxgM,2165
|
|
6
|
-
deriva_ml/run_notebook.py,sha256=
|
|
6
|
+
deriva_ml/run_notebook.py,sha256=U3Bz-PdYYMIo_KZwDwlyKJtnZEMKwJjLh5Jn-M8ChUI,8039
|
|
7
7
|
deriva_ml/core/__init__.py,sha256=V_i90pc5PB1F4UdOO6DZWzpEFaZDTaPRU-EzKXQ19eI,787
|
|
8
8
|
deriva_ml/core/base.py,sha256=5H0GEMlKXUVRXBYXJQ25kxdscB6uX1wIKSUAM_CBOhI,61228
|
|
9
9
|
deriva_ml/core/constants.py,sha256=6wBJ8qMxe-dbCjRGrjUIX-RK0mTWrLDTeUpaVbLFoM8,888
|
|
@@ -14,10 +14,10 @@ deriva_ml/core/exceptions.py,sha256=4MZNPOyN-UMaGeY9sqJDVwh_iOmz1ntp4usSyCNqVMg,
|
|
|
14
14
|
deriva_ml/core/filespec.py,sha256=BQAAcRXfXq1lDcsKlokLOOXCBtEZpPgXxrFOIZYAgLg,4229
|
|
15
15
|
deriva_ml/dataset/__init__.py,sha256=ukl2laJqa9J2AVqb4zlpIYc-3RaAlfRR33NMIQaoNrQ,104
|
|
16
16
|
deriva_ml/dataset/aux_classes.py,sha256=9mZAln7_rrzaRbKhKA6dJOp3xeD6dHOC9NXOtJKROo4,6933
|
|
17
|
-
deriva_ml/dataset/dataset.py,sha256=
|
|
17
|
+
deriva_ml/dataset/dataset.py,sha256=AU27ZtzDSpCodtbq9T-8AtqiA-x8r78wQvFBOCgaqsQ,64451
|
|
18
18
|
deriva_ml/dataset/dataset_bag.py,sha256=mPIZRX5aTbVRcJbCFtdkmlnexquF8NE-onbVK_8IxVk,14224
|
|
19
19
|
deriva_ml/dataset/history.py,sha256=FK5AYYz11p4E4FWMVg4r7UPWOD4eobrq3b3xMjWF59g,3197
|
|
20
|
-
deriva_ml/dataset/upload.py,sha256=
|
|
20
|
+
deriva_ml/dataset/upload.py,sha256=i_7KLfRSd2-THqZ1aG2OFAFGoyb8dJBCZZ5t1ftrtMQ,16429
|
|
21
21
|
deriva_ml/execution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
deriva_ml/execution/environment.py,sha256=B7nywqxFTRUWgyu8n7rFoKcVC9on422kjeFG2FPQfvg,9302
|
|
23
23
|
deriva_ml/execution/execution.py,sha256=JH2alK-7DoRzfGvjsrNhD_tZqoZkb736bxbbgXDP33o,44780
|
|
@@ -34,9 +34,9 @@ deriva_ml/schema/create_schema.py,sha256=9qK9_8SRQT-DwcEwTGSkhi3j2NaoH5EVgthvV2k
|
|
|
34
34
|
deriva_ml/schema/deriva-ml-reference.json,sha256=AEOMIgwKO3dNMMWHb0lxaXyamvfAEbUPh8qw0aAtsUQ,242460
|
|
35
35
|
deriva_ml/schema/policy.json,sha256=5ykB8nnZFl-oCHzlAwppCFKJHWJFIkYognUMVEanfY8,1826
|
|
36
36
|
deriva_ml/schema/table_comments_utils.py,sha256=4flCqnZAaqg_uSZ9I18pNUWAZoLfmMCXbmI5uERY5vM,2007
|
|
37
|
-
deriva_ml-1.14.
|
|
38
|
-
deriva_ml-1.14.
|
|
39
|
-
deriva_ml-1.14.
|
|
40
|
-
deriva_ml-1.14.
|
|
41
|
-
deriva_ml-1.14.
|
|
42
|
-
deriva_ml-1.14.
|
|
37
|
+
deriva_ml-1.14.44.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
38
|
+
deriva_ml-1.14.44.dist-info/METADATA,sha256=Kq-OKAhKOm-JW2HbMoNsZIRWy8oT6v7-CYz4whIqCbo,1168
|
|
39
|
+
deriva_ml-1.14.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
deriva_ml-1.14.44.dist-info/entry_points.txt,sha256=XsHSbfp7S1cKMjHoPUdFIaFcp9lHXHS6CV1zb_MEXkg,463
|
|
41
|
+
deriva_ml-1.14.44.dist-info/top_level.txt,sha256=I1Q1dkH96cRghdsFRVqwpa2M7IqJpR2QPUNNc5-Bnpw,10
|
|
42
|
+
deriva_ml-1.14.44.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|