Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Apr 16, 2024
1 parent 7b9355e commit b26e44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_specsscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def test_conversion_3d():
path=test_dir,
iterations=[0],
)
assert res_xarray.sum(axis=(0, 1, 2)) != res_xarray2.sum(axis=(0, 1, 2))
assert res_xarray.values.sum(axis=(0, 1, 2)) != res_xarray2.values.sum(axis=(0, 1, 2))

res_xarray2 = sps.load_scan(
scan=4450,
path=test_dir,
iterations=np.s_[0:2],
)
assert res_xarray.sum(axis=(0, 1, 2)) == res_xarray2.sum(axis=(0, 1, 2))
assert res_xarray.values.sum(axis=(0, 1, 2)) == res_xarray2.values.sum(axis=(0, 1, 2))

with pytest.raises(IndexError):
sps.load_scan(
Expand Down

0 comments on commit b26e44d

Please sign in to comment.