Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GridIntersect): fix DeprecationWarnings for Shapely2.0 (#1504)
* refactor(make-release): Software citation developed from version.py Closes #727 * release: update mf6 v6.1.1 dfn and flopy mf6 classes (#1) * docs(misc): clean up docstrings * refactor(GridIntersect): fix error message for unsupported methods * bug(GridIntersect): fix #10 ensure one entry per grid cell in polygon intersection result add test for this case * bug(gridintersect): fixes #917 bug in structured mode where linestrings were not handled correctly if they pass in and out of grid cell * fix(GridIntersect): #1035 - fix vertices when intersecting linestring with offset grids * fix shapely2.0 deprecation warnings - keep separate lists of cellids and geometries - use .geoms for iteration over multipart geoms - add deprecation warnings to old methods to generate list of geoms - update intersect_* methods to use new STRtree api - update tests - add replacement function for deprecated descartes PolygonPatch * update notebook * run black, isort, docformatter * update to new STRtree implementation filter shapely2 warnings add shapely<1.8 exception update shapely warning filtering since shapely>1.8 required * address @jlarsen-usgs review comments * quick fix to get_lrc call Changed ```python mfgrid.get_lrc([node])[1:] ``` to ```python mfgrid.get_lrc([node])[0][1:] ``` * change list to tuple in get_node() Co-authored-by: jdhughes-usgs <jdhughes@usgs.gov> Co-authored-by: Christian Langevin <langevin@usgs.gov> Co-authored-by: Joshua Larsen <jlarsen@usgs.gov>
- Loading branch information