Skip to content

Commit

Permalink
Update VIRR test to allow floating point differences
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Nov 28, 2023
1 parent 0782f81 commit 47557a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_virr_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _fy3_helper(self, platform_name, reader, Emissive_units):
"solar_azimuth_angle", "sensor_azimuth_angle"]
assert ["virr_geoxx", "virr_l1b"] == attributes["file_type"]
assert ("longitude", "latitude") == attributes["coordinates"]
assert band_values[dataset["name"]] == round(float(np.array(ds[ds.shape[0] // 2][ds.shape[1] // 2])), 6)
np.testing.assert_allclose(band_values[dataset["name"]], ds[ds.shape[0] // 2][ds.shape[1] // 2], rtol=1e-6)
assert "valid_range" not in ds.attrs

def test_fy3b_file(self):
Expand Down

0 comments on commit 47557a2

Please sign in to comment.