Skip to content

Commit

Permalink
Update constrain_index for _shared mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleaoman committed Sep 19, 2024
1 parent 700ab97 commit 702e0ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swiftsimio/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ def constrain_index(self, index: int):
if not self.metadata.filetype == "SOAP":
warnings.warn("Not masking a SOAP catalogue, nothing constrained.")
return
for group_name in self.metadata.present_group_names:
setattr(self, group_name, np.array([[index, index + 1]]))
setattr(self, f"{group_name}_size", 1)
self._shared = np.array([[index, index + 1]])
self._shared_size = 1

return

def get_masked_counts_offsets(
Expand Down

0 comments on commit 702e0ba

Please sign in to comment.