Skip to content

Commit

Permalink
Cover more catalogue attributes in soap ordering test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleaoman committed Oct 10, 2024
1 parent 8b22391 commit c3087ee
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/test_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,20 @@ def test_soap_target_order_consistency(
preload={"black_holes.masses"}, # just keep warnings quiet
)
for i, sg in enumerate(sgs):
sg_individual = sgs_individual[sgs.iteration_order[i]]
sg_single = sgs_individual[sgs.iteration_order[i]]
assert_allclose_units(
sg_individual.halo_catalogue._region_centre,
sg_single.halo_catalogue._region_centre,
sg.halo_catalogue._region_centre,
)
assert_allclose_units(
sg_single.halo_catalogue.centre,
sg.halo_catalogue.centre,
)
assert_allclose_units(
sg_single.halo_catalogue.velocity_centre,
sg.halo_catalogue.velocity_centre,
)
assert_allclose_units(
sg_single.halo_catalogue.spherical_overdensity_200_crit.centre_of_mass,
sg.halo_catalogue.spherical_overdensity_200_crit.centre_of_mass,
)

0 comments on commit c3087ee

Please sign in to comment.