diff --git a/velociraptor/catalogue/velociraptor_catalogue.py b/velociraptor/catalogue/velociraptor_catalogue.py index 60200b8..ee06687 100644 --- a/velociraptor/catalogue/velociraptor_catalogue.py +++ b/velociraptor/catalogue/velociraptor_catalogue.py @@ -131,15 +131,12 @@ def getter(self): self, f"_{name}", unyt.unyt_array( - handle[field][mask[sort_mask]][unsort_mask], - unit, + handle[field][mask[sort_mask]][unsort_mask], unit ), ) else: setattr( - self, - f"_{name}", - unyt.unyt_array(handle[field][mask], unit), + self, f"_{name}", unyt.unyt_array(handle[field][mask], unit) ) getattr(self, f"_{name}").name = full_name getattr(self, f"_{name}").file = filename