ocean-runner 0.2.7__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.
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.7
3
+ Version: 0.2.8
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
@@ -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=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,,