Skip to content

Commit

Permalink
Update bbox assertion in test_random_oil_spills
Browse files Browse the repository at this point in the history
Update shapely testing function re: "ShapelyDeprecationWarning: The
'almost_equals()' method is deprecated and will be removed in Shapely 2.1".
  • Loading branch information
douglatornell committed Dec 18, 2023
1 parent b1a10be commit c6ad52c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_random_oil_spills.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import pandas
import pytest
import shapely.geometry
import shapely.testing
import xarray
import yaml

Expand Down Expand Up @@ -270,7 +271,7 @@ def test_get_lat_lon_indices(self, config_file):
assert lon == pytest.approx(expected.lon)
assert geotiff_x_index == expected.geotiff_x_index
assert geotiff_y_index == expected.geotiff_y_index
assert geotiff_bbox.almost_equals(expected.geotiff_bbox)
shapely.testing.assert_geometries_equal(geotiff_bbox, expected.geotiff_bbox, tolerance=1e-6)


class TestGetVesselType:
Expand Down

0 comments on commit c6ad52c

Please sign in to comment.