ocean-runner 0.2.6__py3-none-any.whl → 0.2.8__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.
Potentially problematic release.
This version of ocean-runner might be problematic. Click here for more details.
- ocean_runner/runner.py +5 -3
- {ocean_runner-0.2.6.dist-info → ocean_runner-0.2.8.dist-info}/METADATA +1 -1
- ocean_runner-0.2.8.dist-info/RECORD +8 -0
- ocean_runner-0.2.6.dist-info/RECORD +0 -8
- {ocean_runner-0.2.6.dist-info → ocean_runner-0.2.8.dist-info}/WHEEL +0 -0
- {ocean_runner-0.2.6.dist-info → ocean_runner-0.2.8.dist-info}/licenses/LICENSE +0 -0
ocean_runner/runner.py
CHANGED
|
@@ -125,10 +125,10 @@ class Algorithm(Generic[JobDetailsT, ResultT]):
|
|
|
125
125
|
|
|
126
126
|
return self
|
|
127
127
|
|
|
128
|
-
def run(self, callable: Callable[[Self], ResultT]) -> Self:
|
|
128
|
+
def run(self, callable: Callable[[Self], ResultT], is_check_test=True) -> Self:
|
|
129
129
|
self.logger.info("Running algorithm...")
|
|
130
130
|
try:
|
|
131
|
-
if self._runtime == RuntimeMode.TEST:
|
|
131
|
+
if is_check_test and self._runtime == RuntimeMode.TEST:
|
|
132
132
|
callable = default_test_run
|
|
133
133
|
|
|
134
134
|
self._result = callable(self)
|
|
@@ -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:
|
|
@@ -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=nneFJvbcUdD31cl15_y7oyKl1Qg9xFHKZguUFdVKjZw,4612
|
|
4
|
+
ocean_runner/runtime_mode.py,sha256=WbGTaoL3hxBWbxM8luwyOwwtQonqyIhbus0_Jd-F-3k,83
|
|
5
|
+
ocean_runner-0.2.8.dist-info/METADATA,sha256=ns4PJ7bUu0NbD4CyRoQcqfc56zfCl7ECjuCeW5HACcU,6101
|
|
6
|
+
ocean_runner-0.2.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
ocean_runner-0.2.8.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
8
|
+
ocean_runner-0.2.8.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.6.dist-info/METADATA,sha256=tRLmFk4dJyU339FUPg5qheFOrDXuzyFDx1vwThTgC2s,6101
|
|
6
|
-
ocean_runner-0.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
ocean_runner-0.2.6.dist-info/licenses/LICENSE,sha256=_B25KqK4amoADWkMN150tnZFm_Fy7VvZpvIC8ZydWdI,1053
|
|
8
|
-
ocean_runner-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|