Skip to content

Commit

Permalink
condacy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencalje committed Apr 12, 2023
1 parent a461e69 commit 7386579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nlmod/dims/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def gdf_to_grid(
if ix is None:
ix = flopy.utils.GridIntersect(modelgrid, method=method)
shps = []
geometry = gdf._geometry_column_name
geometry = gdf.geometry.name
for _, shp in tqdm(gdf.iterrows(), total=gdf.shape[0], desc=desc):
r = ix.intersect(shp[geometry], **kwargs)
for i in range(r.shape[0]):
Expand Down Expand Up @@ -1363,11 +1363,11 @@ def get_thickness_from_topbot(top, bot):
else:
raise ValueError("function only support structured or vertex gridtypes")

for lay in range(len(bot)):
for lay, botlay in enumerate(bot):
if lay == 0:
thickness[lay] = top - bot[lay]
thickness[lay] = top - botlay
else:
thickness[lay] = bot[lay - 1] - bot[lay]
thickness[lay] = bot[lay - 1] - botlay

return thickness

Expand Down

0 comments on commit 7386579

Please sign in to comment.