oceanprotocol-job-details 0.1.2__py3-none-any.whl → 0.1.3__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.
- oceanprotocol_job_details/ocean.py +12 -1
- {oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/METADATA +1 -1
- {oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/RECORD +5 -5
- {oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/WHEEL +0 -0
- {oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -180,4 +180,15 @@ class JobDetails(Generic[T]):
|
|
|
180
180
|
"""Read the input parameters and return them in an instance of the dataclass T"""
|
|
181
181
|
|
|
182
182
|
with open(config.path_algorithm_custom_parameters, "r") as f:
|
|
183
|
-
|
|
183
|
+
raw = f.read().strip()
|
|
184
|
+
if not raw:
|
|
185
|
+
raise ValueError(
|
|
186
|
+
f"Custom parameters file {config.path_algorithm_custom_parameters} is empty"
|
|
187
|
+
)
|
|
188
|
+
try:
|
|
189
|
+
return dataclass_json(self._type).from_json(raw) # type: ignore
|
|
190
|
+
except Exception as e:
|
|
191
|
+
raise ValueError(
|
|
192
|
+
f"Failed to parse input paramers into {self._type.__name__}: {e}\n"
|
|
193
|
+
f"Raw content: {raw}"
|
|
194
|
+
) from e
|
{oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oceanprotocol-job-details
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: A Python package to get details from OceanProtocol jobs
|
|
5
5
|
Project-URL: Homepage, https://github.com/AgrospAI/oceanprotocol-job-details
|
|
6
6
|
Project-URL: Issues, https://github.com/AgrospAI/oceanprotocol-job-details/issues
|
{oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/RECORD
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
oceanprotocol_job_details/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
oceanprotocol_job_details/config.py,sha256=lE9H8rRSF5RCJtMHMTAYf8CUYMyf9GPq0kiB2cT8-gE,1429
|
|
3
3
|
oceanprotocol_job_details/job_details.py,sha256=98Uvx3jes1f75onYxT-65EOOOwcxdw32slAa3n1MqUc,1477
|
|
4
|
-
oceanprotocol_job_details/ocean.py,sha256=
|
|
4
|
+
oceanprotocol_job_details/ocean.py,sha256=dFD_KaePWSNJ7gojrO950Vk66aGt1bdKVvQ5TZVXy2c,3975
|
|
5
5
|
oceanprotocol_job_details/utils.py,sha256=btgys1g4AKSADsde_JRofPVmI0VbR_jf85DIYhuMhgs,940
|
|
6
6
|
oceanprotocol_job_details/loaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
oceanprotocol_job_details/loaders/loader.py,sha256=HIzsVKCuGP7ghfM7ppN3ANVybvsA64wr3h8I68mqS6A,195
|
|
@@ -9,7 +9,7 @@ oceanprotocol_job_details/loaders/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
|
9
9
|
oceanprotocol_job_details/loaders/impl/ddo.py,sha256=LcKoDuGnZw8JW68Q5P9gWGYeZqszC97HxnkzOuorHBA,707
|
|
10
10
|
oceanprotocol_job_details/loaders/impl/files.py,sha256=hft3Y61D6eHpa9ZQ5i2C5tnCv9IZaTudOZaOIQUbkxo,2002
|
|
11
11
|
oceanprotocol_job_details/loaders/impl/job_details.py,sha256=ERKQm1oH3jW8ebb8l4glL-Wm-9rV8mBfFalVvo0UomU,802
|
|
12
|
-
oceanprotocol_job_details-0.1.
|
|
13
|
-
oceanprotocol_job_details-0.1.
|
|
14
|
-
oceanprotocol_job_details-0.1.
|
|
15
|
-
oceanprotocol_job_details-0.1.
|
|
12
|
+
oceanprotocol_job_details-0.1.3.dist-info/METADATA,sha256=VC4s7hOfXzsE4vHIiVMot2q3IsoxurqX6H6qq77wWIc,3141
|
|
13
|
+
oceanprotocol_job_details-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
+
oceanprotocol_job_details-0.1.3.dist-info/licenses/LICENSE,sha256=ni3ix7P_GxK1W3VGC4fJ3o6QoCngCEpSuTJwO4nkpbw,1055
|
|
15
|
+
oceanprotocol_job_details-0.1.3.dist-info/RECORD,,
|
{oceanprotocol_job_details-0.1.2.dist-info → oceanprotocol_job_details-0.1.3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|