From 34994bb694c7924ce0a0500b8f9befa4b1ee4abf Mon Sep 17 00:00:00 2001 From: Kyle Oman Date: Thu, 19 Sep 2024 10:35:14 +0100 Subject: [PATCH] Remove guard for SOAP files only. --- swiftsimio/masks.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/swiftsimio/masks.py b/swiftsimio/masks.py index f5db74a8..9564f5ae 100644 --- a/swiftsimio/masks.py +++ b/swiftsimio/masks.py @@ -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)