Skip to content

Commit

Permalink
Fix errors when handlings 'band' parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Sep 26, 2022
1 parent 50a66ac commit c87216e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyqgiswps/executors/processingio.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def parse_literal_input( param: QgsProcessingParameterDefinition, kwargs ) -> Li
QgsProcessingParameterField.DateTime: 'DateTime',
}[param.dataType()]))
elif typ == 'band':
kwargs['data_type'] = 'integer',
kwargs['allowed_values'] = AllowedValues.nonNegativeValue(),
kwargs['data_type'] = 'integer'
kwargs['allowed_values'] = AllowedValues.nonNegativeValue()
else:
return None

Expand Down
2 changes: 1 addition & 1 deletion pyqgiswps/inout/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class BasicLiteral:
"""Basic literal input/output class
"""
def __init__(self, data_type, uoms=None):
assert data_type in LITERAL_DATA_TYPES
assert data_type in LITERAL_DATA_TYPES, f"data type {data_type} no supported"
self.data_type = data_type
# current uom
self.supported_uoms = uoms
Expand Down

0 comments on commit c87216e

Please sign in to comment.