ocean-runner 0.2.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.6
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
@@ -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
  [project]
2
2
  name = "ocean-runner"
3
- version = "0.2.6"
3
+ version = "0.2.7"
4
4
  description = "A fluent API for OceanProtocol algorithms"
5
5
  authors = [
6
6
  { name = "AgrospAI", email = "agrospai@udl.cat" },
File without changes
File without changes
File without changes