Skip to content

Commit

Permalink
Ensure windows-python 3.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Jun 26, 2024
1 parent 9500562 commit 62792b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gpm/tests/test_dataset/test_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,14 @@ def test_get_orbit_coords():
returned_coords = {k: (list(da.dims), da.data) for k, da in returned_coords.items()}

# Ensure same integer for gpm_granule_id
expected_coords["gpm_granule_id"][1] = expected_coords["gpm_granule_id"][1].astype(int)
returned_coords["gpm_granule_id"][1] = returned_coords["gpm_granule_id"][1].astype(int)

expected_coords["gpm_granule_id"] = (
expected_coords["gpm_granule_id"][0],
expected_coords["gpm_granule_id"][1].astype(int),
)
returned_coords["gpm_granule_id"] = (
returned_coords["gpm_granule_id"][0],
returned_coords["gpm_granule_id"][1].astype(int),
)
# Compare same type
diff = DeepDiff(expected_coords, returned_coords)
assert diff == {}, f"Dictionaries are not equal: {diff}"
Expand Down

0 comments on commit 62792b9

Please sign in to comment.