Skip to content

Commit

Permalink
Fix hdf5 five unit test for astropy 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed May 31, 2023
1 parent cbfad66 commit b33e4a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ctapipe/io/tests/test_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ class WithUnits(Container):
with tables.open_file(path, "r") as f:
assert f.root.data.units.attrs["CTAFIELD_0_UNIT"] == "m**-1"
assert f.root.data.units.attrs["CTAFIELD_1_UNIT"] == "s"
assert f.root.data.units.attrs["CTAFIELD_2_UNIT"] == "cm**-2.g"
# order of the units does not matter
assert f.root.data.units.attrs["CTAFIELD_2_UNIT"] in {"cm**-2.g", "g.cm**-2"}


def test_write_containers(tmp_path):
Expand Down

0 comments on commit b33e4a7

Please sign in to comment.