-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
openeo-python-client/openeo/rest/mlmodel.py
Lines 45 to 59 in e930f72
| @staticmethod | |
| @openeo_process | |
| def load_ml_model(connection: Connection, id: Union[str, BatchJob]) -> MlModel: | |
| """ | |
| Loads a machine learning model from a STAC Item. | |
| :param connection: connection object | |
| :param id: STAC item reference, as URL, batch job (id) or user-uploaded file | |
| :return: | |
| .. versionadded:: 0.10.0 | |
| """ | |
| if isinstance(id, BatchJob): | |
| id = id.job_id | |
| return MlModel(graph=PGNode(process_id="load_ml_model", id=id), connection=connection) |
This API, with id argument is outdated (removed by Open-EO/openeo-processes#417), and will be replaced by argument uri (by Open-EO/openeo-processes#441)
we have to make sure the python client is future proof here (possibly with some backward compatibility tricks)
related: