From fa7533895f4c61e247ca02240b2d358c4b49a72a Mon Sep 17 00:00:00 2001 From: emanuel-schmid Date: Wed, 22 Mar 2023 14:56:50 +0100 Subject: [PATCH] test_tc_tracks.test_to_geodataframe_line: adapt to shapely 2.0 (works in 1.8 too) see https://shapely.readthedocs.io/en/stable/migration.html --- climada/hazard/test/test_tc_tracks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/climada/hazard/test/test_tc_tracks.py b/climada/hazard/test/test_tc_tracks.py index e0af4da61..f097fe0da 100644 --- a/climada/hazard/test/test_tc_tracks.py +++ b/climada/hazard/test/test_tc_tracks.py @@ -508,7 +508,7 @@ def test_to_geodataframe_line(self): split.set_index('sid', inplace=True) self.assertIsInstance(split.loc['1980052S16155'].geometry, MultiLineString) self.assertIsInstance(split.loc['2018079S09162'].geometry, LineString) - self.assertEqual(len(split.loc['1980052S16155'].geometry), 8) + self.assertEqual(len(split.loc['1980052S16155'].geometry.geoms), 8) self.assertFalse(split.loc['2018079S09162'].geometry.is_simple) nosplit = anti_track.to_geodataframe(split_lines_antimeridian=False)