Skip to content

Commit

Permalink
Remove guard for SOAP files only.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleaoman committed Sep 19, 2024
1 parent f7c8d75 commit 34994bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions swiftsimio/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ def constrain_index(self, index: int):
index : int
The index of the row to select.
"""
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)
Expand Down

0 comments on commit 34994bb

Please sign in to comment.