Skip to content

Commit

Permalink
Update return of final mask using NOT operator
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Hofmann <[email protected]>
  • Loading branch information
calvintr and Fabian Hofmann authored Jun 8, 2022
1 parent c94e362 commit 02fa479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlite/gis.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def shape_availability(geometry, excluder):
masked = ~geometry_mask(d["geometry"], shape, transform, invert=d["invert"])
exclusions = exclusions | masked

return (exclusions == False), transform
return ~exclusions, transform


def shape_availability_reprojected(
Expand Down

0 comments on commit 02fa479

Please sign in to comment.