Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geoengine/workflow_builder/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def to_dict(self) -> Dict[str, Any]:
"outputType": self.output_type,
"mapNoData": self.map_no_data,
}
if self.output_band:
if self.output_band is not None:
params["outputBand"] = self.output_band.to_api_dict().to_dict()

return {
Expand All @@ -693,7 +693,7 @@ def from_operator_dict(cls, operator_dict: Dict[str, Any]) -> 'Expression':
raise ValueError("Invalid operator type")

output_band = None
if "outputBand" in operator_dict["params"]:
if "outputBand" in operator_dict["params"] and operator_dict["params"] is not None:
output_band = RasterBandDescriptor.from_response(
geoengine_openapi_client.RasterBandDescriptor.from_dict(
operator_dict["params"]["outputBand"]
Expand Down
Loading