ocean-runner 0.2.5__py3-none-any.whl → 0.2.7__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.
ocean_runner/runner.py CHANGED
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.5
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
-
@@ -0,0 +1,8 @@
1
+ ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
2
+ ocean_runner/config.py,sha256=zzpGxotGhGnNdHKFJqQ7fuXK5zW2IGOpzftHilcySD4,1644
3
+ ocean_runner/runner.py,sha256=j0BOuxO9PgI2wV7812VN9FghgwZz4cLjV0bu_mHP3YA,4574
4
+ ocean_runner/runtime_mode.py,sha256=WbGTaoL3hxBWbxM8luwyOwwtQonqyIhbus0_Jd-F-3k,83
5
+ ocean_runner-0.2.7.dist-info/METADATA,sha256=d0KyDgAwzqadDcnelkgENnmCUWU_fXFh7CMKndatRYE,6101
6
+ ocean_runner-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ ocean_runner-0.2.7.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
8
+ ocean_runner-0.2.7.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- ocean_runner/__init__.py,sha256=awAmE6kZhuwcrD3gT7qFZArdhiuzW-EFTA6tGKhw06k,138
2
- ocean_runner/config.py,sha256=zzpGxotGhGnNdHKFJqQ7fuXK5zW2IGOpzftHilcySD4,1644
3
- ocean_runner/runner.py,sha256=n5odQp11yUllkOXrrwYsnQGRGXmCJCh0cQhPR81am94,4503
4
- ocean_runner/runtime_mode.py,sha256=WbGTaoL3hxBWbxM8luwyOwwtQonqyIhbus0_Jd-F-3k,83
5
- ocean_runner-0.2.5.dist-info/METADATA,sha256=BU0al5bWLGj6P7PzWXyOMH6T5AJTQe9jN52OnXBgYs0,6102
6
- ocean_runner-0.2.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- ocean_runner-0.2.5.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
8
- ocean_runner-0.2.5.dist-info/RECORD,,