Skip to content

Commit

Permalink
Convert to numpy if list is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 14, 2023
1 parent 8d9e3fb commit f193930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openeo_processes_dask/process_implementations/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def first(
ignore_nodata: Optional[bool] = True,
axis: Optional[str] = None,
):
if isinstance(data, list):
data = np.asarray(data)
if len(data) == 0:
return np.nan
if axis is None:
Expand Down

0 comments on commit f193930

Please sign in to comment.