Skip to content

Commit

Permalink
Add codacy rules and replace one use of polygon_from_extent
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencalje committed Jul 2, 2024
1 parent f46101c commit 2c228b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pylint:
- too-many-branches
- too-many-statements
- logging-fstring-interpolation
- import-outside-toplevel
- implicit-str-concat

mccabe:
disable:
Expand Down
2 changes: 1 addition & 1 deletion nlmod/dims/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,7 @@ def mask_model_edge(ds, idomain=None):
ds["vertices"] = get_vertices(ds)
polygons_grid = polygons_from_model_ds(ds)
gdf_grid = gpd.GeoDataFrame(geometry=polygons_grid)
extent_edge = util.polygon_from_extent(ds.extent).exterior
extent_edge = get_extent_polygon(ds).exterior
cids_edge = gdf_grid.loc[gdf_grid.touches(extent_edge)].index
ds_out["edge_mask"] = util.get_da_from_da_ds(
ds, dims=("layer", "icell2d"), data=0
Expand Down

0 comments on commit 2c228b6

Please sign in to comment.