Skip to content

Commit

Permalink
removing out_of_extent logic from zone_mask(); changing dummy zones a…
Browse files Browse the repository at this point in the history
…rray to uint8
  • Loading branch information
mjgleason committed Jan 21, 2025
1 parent 0424beb commit 99368b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion reV/supply_curve/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _get_gid_zones(excl_fpath, zones_dset, gid, slice_lookup):
row_slice.stop - row_slice.start,
col_slice.stop - col_slice.start
)
zones = np.ones(shape, dtype="uint32")
zones = np.ones(shape, dtype="uint8")

return zones

Expand Down
7 changes: 0 additions & 7 deletions reV/supply_curve/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,6 @@ def zone_mask(self):
-------
np.ndarray
"""

if self._zone_mask is None:
return None

out_of_extent = self._gids.reshape(self._zone_mask.shape) == -1
self._zone_mask[out_of_extent] = 0.0

return self._zone_mask

@property
Expand Down

0 comments on commit 99368b2

Please sign in to comment.