Skip to content

Commit

Permalink
test_tc_tracks.test_to_geodataframe_line: adapt to shapely 2.0 (works…
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Mar 22, 2023
1 parent fd32ff5 commit fa75338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/hazard/test/test_tc_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa75338

Please sign in to comment.