@@ -43,8 +43,6 @@ class ProcessDefinition(NamedTuple):
43
43
# Definition what the process returns
44
44
returns : Optional [dict ] = None
45
45
46
- # TODO: official naming of these "processing parameter" related properties is undecided at the moment.
47
- # see https://github.com/Open-EO/openeo-api/pull/471#discussion_r1904253964
48
46
default_job_options : Optional [dict ] = None
49
47
default_synchronous_options : Optional [dict ] = None
50
48
@@ -111,18 +109,10 @@ def _get_process_definition_from_url(process_id: str, url: str) -> ProcessDefini
111
109
message = f"No valid process definition for { process_id !r} found at { url !r} ." ,
112
110
)
113
111
114
- # TODO: official property name for these "processing parameters" is undecided at the moment.
115
- # see https://github.com/Open-EO/openeo-api/pull/471#discussion_r1904253964
116
- if "default_job_parameters" in spec :
117
- _log .warning ("Extracting experimental 'default_job_parameters' from process definition." )
118
- default_job_options = spec ["default_job_parameters" ]
119
- else :
120
- default_job_options = None
121
- if "default_synchronous_parameters" in spec :
122
- _log .warning ("Extracting experimental 'default_synchronous_parameters' from process definition." )
123
- default_synchronous_options = spec ["default_synchronous_parameters" ]
124
- else :
125
- default_synchronous_options = None
112
+ # Processing Parameters Extension support
113
+ # (conformance class `https://api.openeo.org/extensions/processing-parameters/0.1.0`)
114
+ default_job_options = spec .get ("default_job_options" , None )
115
+ default_synchronous_options = spec .get ("default_synchronous_options" , None )
126
116
127
117
return ProcessDefinition (
128
118
id = process_id ,
0 commit comments