Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jul 29, 2021
1 parent 4b79071 commit 1454f92
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions satflow/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ def test_satflow_all_deterministic_validation_restart():
config = load_config("satflow/tests/configs/satflow_all.yaml")
cloudflow = SatFlowDataset([dataset], config, train=False)
data = next(iter(cloudflow))
x, image, y = data
x, image = data
data = next(iter(cloudflow))
x2, image2, y2 = data
x2, image2 = data
np.testing.assert_almost_equal(x, x2)
np.testing.assert_almost_equal(image, image2)
np.testing.assert_almost_equal(y, y2)
assert not np.allclose(image[0], image[-1])
assert not np.allclose(y[0], y[-1])

0 comments on commit 1454f92

Please sign in to comment.