deriva-ml 1.14.43__tar.gz → 1.14.44__tar.gz
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-1.14.43 → deriva_ml-1.14.44}/PKG-INFO +1 -1
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/pyproject.toml +2 -2
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/dataset.py +4 -4
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/upload.py +0 -2
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/run_notebook.py +12 -7
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/PKG-INFO +1 -1
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/SOURCES.txt +0 -1
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/uv.lock +417 -325
- deriva_ml-1.14.43/tests/dataset/test_dataset_export.py +0 -30
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/.github/release-drafter.yml +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/.github/workflows/publish-docs.yml +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/.github/workflows/release.yml +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/.gitignore +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/LICENSE +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/README.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/.DS_Store +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Create Notes.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Dataset.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Execution.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Features.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Ingest.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/Notebooks/DerivaML Vocabulary.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/ERD.png +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/Launcher.png +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/copy_minid.png +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/deriva-logo.png +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/deriva-ml.pdf +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/assets/sharing-at-home.pdf +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/dataset.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/dataset_aux_classes.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/dataset_bag.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/deriva_definitions.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/deriva_ml_base.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/deriva_model.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/execution.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/execution_configuration.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/feature.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/code-docs/upload.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/index.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/release-notes.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/datasets.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/deriva_ml_structure.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/execution-configuration.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/file-assets.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/identifiers.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/install.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/notebooks.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/docs/user-guide/overview.md +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/mkdocs.yml +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/setup.cfg +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/bump_version.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/base.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/constants.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/definitions.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/enums.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/ermrest.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/exceptions.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/core/filespec.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/aux_classes.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/dataset_bag.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/dataset/history.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/demo_catalog.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/execution/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/execution/environment.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/execution/execution.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/execution/execution_configuration.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/execution/workflow.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/feature.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/install_kernel.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/model/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/model/catalog.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/model/database.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/model/sql_mapper.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/annotations.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/check_schema.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/create_schema.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/deriva-ml-reference.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/policy.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml/schema/table_comments_utils.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/dependency_links.txt +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/entry_points.txt +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/requires.txt +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/src/deriva_ml.egg-info/top_level.txt +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/conftest.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/core/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/core/test_basic_tables.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/core/test_file.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/core/test_vocabulary.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/demo-catalog-schema.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/deriva-ml-reference.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/eye-ai-catalog-schema.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/test_dataset_version.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/test_datasets.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/dataset/test_download.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/execution/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/execution/test_execution.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/execution/workflow-test.ipynb +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/execution/workflow-test.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/feature/test_features.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/model/__init__.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/model/test_database.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/model/test_models.py +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/test-files/execution-parameters.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/test-files/notebook-parameters.json +0 -0
- {deriva_ml-1.14.43 → deriva_ml-1.14.44}/tests/test_utils.py +0 -0
|
@@ -43,8 +43,8 @@ build-backend = "setuptools.build_meta"
|
|
|
43
43
|
[tool.uv]
|
|
44
44
|
|
|
45
45
|
[tool.uv.sources]
|
|
46
|
-
bdbag = {git = "https://github.com/fair-research/bdbag", branch = "master" }
|
|
47
|
-
deriva = {git = "https://github.com/informatics-isi-edu/deriva-py", branch = "master" }
|
|
46
|
+
#bdbag = {git = "https://github.com/fair-research/bdbag", branch = "master" }
|
|
47
|
+
#deriva = {git = "https://github.com/informatics-isi-edu/deriva-py", branch = "master" }
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
[tool.setuptools.package-data]
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -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....")
|
|
@@ -93,7 +93,6 @@ tests/dataset/__init__.py
|
|
|
93
93
|
tests/dataset/demo-catalog-schema.json
|
|
94
94
|
tests/dataset/deriva-ml-reference.json
|
|
95
95
|
tests/dataset/eye-ai-catalog-schema.json
|
|
96
|
-
tests/dataset/test_dataset_export.py
|
|
97
96
|
tests/dataset/test_dataset_version.py
|
|
98
97
|
tests/dataset/test_datasets.py
|
|
99
98
|
tests/dataset/test_download.py
|