Skip to content

Commit 8413f03

Browse files
allows output of run_udf to be used as temporal extent in other processes
1 parent 8ba7fab commit 8413f03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openeo/rest/datacube.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
_ProcessGraphAbstraction,
6666
build_child_callback,
6767
)
68-
from openeo.rest.graph_building import CollectionProperty
68+
from openeo.rest.graph_building import CollectionProperty, ProcessBuilder
6969
from openeo.rest.job import BatchJob
7070
from openeo.rest.mlmodel import MlModel
7171
from openeo.rest.models.general import ValidationResponse
@@ -513,9 +513,9 @@ def _get_temporal_extent(
513513
if len(args) == 1 and isinstance(args[0], Parameter):
514514
assert start_date is None and end_date is None and extent is None
515515
return args[0]
516-
elif len(args) == 0 and isinstance(extent, Parameter):
516+
elif len(args) == 0 and (isinstance(extent, Parameter) or isinstance(extent, ProcessBuilder)):
517517
assert start_date is None and end_date is None
518-
# TODO: warn about unexpected parameter schema
518+
# TODO: warn about unexpected parameter or ProcessBuilder schema
519519
return extent
520520
else:
521521
def convertor(d: Any) -> Any:

0 commit comments

Comments
 (0)