Skip to content

Commit

Permalink
Update tests/test_basic.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hill <[email protected]>
  • Loading branch information
JoelLucaAdams and ZedThree authored Aug 2, 2024
1 parent e2f7eba commit 4967ebc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def test_basic():


def test_coords():
with xr.open_dataset(EXAMPLE_FILES_DIR / "0011.sdf") as df:
px_photon = "dist_fn/px_py/Photon"
assert px_photon in df
x_coord = "Px_px_py/Photon"
assert x_coord in df[px_photon].coords
with xr.open_dataset(EXAMPLE_FILES_DIR / "0010.sdf") as df:
px_electron = "dist_fn/x_px/electron"
assert px_electron in df
x_coord = "Px_x_px/electron"
assert x_coord in df[px_electron].coords
assert df[x_coord].attrs["long_name"] == "Px"

0 comments on commit 4967ebc

Please sign in to comment.