oceanprotocol-job-details 0.1.2__tar.gz → 0.1.3__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.
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/PKG-INFO +1 -1
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/ocean.py +12 -1
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/pyproject.toml +1 -1
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/.gitignore +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/LICENSE +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/README.md +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/__init__.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/config.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/job_details.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/__init__.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/impl/__init__.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/impl/ddo.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/impl/files.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/impl/job_details.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/loaders/loader.py +0 -0
- {oceanprotocol_job_details-0.1.2 → oceanprotocol_job_details-0.1.3}/oceanprotocol_job_details/utils.py +0 -0
|
@@ -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
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|