ocean-runner 0.2.5__tar.gz → 0.2.7__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.
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/PKG-INFO +1 -2
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/README.md +0 -1
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/ocean_runner/runner.py +3 -1
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/pyproject.toml +1 -1
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/.gitignore +0 -0
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/LICENSE +0 -0
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/ocean_runner/__init__.py +0 -0
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/ocean_runner/config.py +0 -0
- {ocean_runner-0.2.5 → ocean_runner-0.2.7}/ocean_runner/runtime_mode.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ocean-runner
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: A fluent API for OceanProtocol algorithms
|
|
5
5
|
Project-URL: Homepage, https://github.com/AgrospAI/ocean-runner
|
|
6
6
|
Project-URL: Issues, https://github.com/AgrospAI/ocean-runner/issues
|
|
@@ -198,4 +198,3 @@ Environment variables:
|
|
|
198
198
|
- `SECRET` Algorithm secret.
|
|
199
199
|
- `BASE_DIR` (optional, default="/data"): Base path to the OceanProtocol data directories.
|
|
200
200
|
- `RUNTIME` (optional, default="dev"): Runtime mode
|
|
201
|
-
|
|
@@ -140,12 +140,14 @@ class Algorithm(Generic[JobDetailsT, ResultT]):
|
|
|
140
140
|
def save_results(
|
|
141
141
|
self,
|
|
142
142
|
callable: Callable[[ResultT, Path, Algorithm], None] = default_save,
|
|
143
|
+
*,
|
|
144
|
+
override_path: Path | None = None,
|
|
143
145
|
) -> None:
|
|
144
146
|
self.logger.info("Saving results...")
|
|
145
147
|
try:
|
|
146
148
|
callable(
|
|
147
149
|
results=self.result,
|
|
148
|
-
base_path=self.job_details.paths.outputs,
|
|
150
|
+
base_path=override_path or self.job_details.paths.outputs,
|
|
149
151
|
algorithm=self,
|
|
150
152
|
)
|
|
151
153
|
except Exception as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|