Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
param 'index' is optional, fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
lforesta committed Aug 19, 2020
1 parent 782f8b7 commit 1045ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openeo_processes/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def exec_num():
pass

@staticmethod
def exec_np(data, index=0, label=None, dimension=0, return_nodata=False):
def exec_np(data, index=None, label=None, dimension=0, return_nodata=False):
"""
Returns the element with the specified index or label from the array. Either the parameter `index` or `label`
must be specified, otherwise the `ArrayElementParameterMissing` exception is thrown. If both parameters are set
Expand Down Expand Up @@ -1027,4 +1027,4 @@ def exec_xar():

@staticmethod
def exec_da():
pass
pass

0 comments on commit 1045ed8

Please sign in to comment.