Skip to content

Commit

Permalink
update dataset/series registry
Browse files Browse the repository at this point in the history
  • Loading branch information
cbyrohl committed Aug 17, 2023
1 parent e6da552 commit 429c44f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scida/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
from scida.customs.gizmo.series import GizmoSimulation
from scida.customs.rockstar.dataset import RockstarCatalog
from scida.customs.swift.dataset import SwiftSnapshot
from scida.customs.swift.series import SwiftSimulation

logging.basicConfig(stream=sys.stdout, level=logging.INFO)
2 changes: 2 additions & 0 deletions tests/customs/test_flamingo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def test_snapshot(testdatapath):
def test_series(testdatapath):
obj: SwiftSimulation = load(testdatapath, units=True)
obj.info()
assert isinstance(obj, SwiftSimulation)
z = 4.75
ds = obj.get_dataset(redshift=z)
assert isinstance(ds, SwiftSnapshot)
assert ds.redshift == z

0 comments on commit 429c44f

Please sign in to comment.