Skip to content

Commit

Permalink
TST: fix compatibility with unyt 3.0.x in yt.testing.ParticleSelectio…
Browse files Browse the repository at this point in the history
…nComparison.compare_dobj_selection
  • Loading branch information
neutrinoceros committed Nov 2, 2023
1 parent 10a6a98 commit 338c955
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,9 @@ def compare_dobj_selection(self, dobj):
# NULP should be OK. This is mostly for stuff like Rockstar, where
# the f32->f64 casting happens at different places depending on
# which code path we use.
assert_array_almost_equal_nulp(sel_pos, obj_results, 5)
assert_array_almost_equal_nulp(
np.asarray(sel_pos), np.asarray(obj_results), 5
)

def run_defaults(self):
"""
Expand Down

0 comments on commit 338c955

Please sign in to comment.