Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cbyrohl committed Jul 11, 2023
1 parent 0a12ffd commit 44a0ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scida/customs/arepo/TNGcluster/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def len_to_offsets(lengths):
particles=len_to_offsets(self.lengths_zoom["particles"])
)

if hasattr(self, "catalog"):
if hasattr(self, "catalog") and self.catalog is not None:
self.lengths_zoom["groups"] = self.catalog.header["Ngroups_ThisFile"]
self.offsets_zoom["groups"] = len_to_offsets(self.lengths_zoom["groups"])
self.lengths_zoom["subgroups"] = self.catalog.header["Nsubgroups_ThisFile"]
Expand Down
3 changes: 1 addition & 2 deletions tests/customs/test_gadgetstyle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from testdata_properties import require_testdata_path

from scida import GadgetStyleSnapshot
from tests.testdata_properties import require_testdata_path


@require_testdata_path("interface", only=["TNG50-4_group"])
Expand Down

0 comments on commit 44a0ea6

Please sign in to comment.