Skip to content

Commit

Permalink
Codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoEbbens authored Aug 24, 2023
1 parent ca0c62a commit fe3b788
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nlmod/dims/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def calculate_resistance(ds, kv='kv', thickness='thickness', top='top', botm='bo
c = xr.zeros_like(thickness)
for ilay in range(ds.dims['layer']-1):
ctop = (thickness_nan.sel(layer=ds.layer[ilay]) * 0.5) / kv_nan.sel(layer=ds.layer[ilay])
cbot = (thickness_bfill.sel(layer=ds.layer[ilay+1]) * 0.5) / kv_bfill.sel(layer=ds.layer[ilay+1])
cbot = (thickness_bfill.sel(layer=ds.layer[ilay+1]) * 0.5) / kv_bfill.sel(layer=ds.layer[ilay+1])
c[ilay] = ctop + cbot
c[ilay+1] = np.inf

Expand All @@ -123,8 +123,7 @@ def calculate_resistance(ds, kv='kv', thickness='thickness', top='top', botm='bo
c.attrs["units"] = ""
else:
c.attrs["units"] = ""



return c


Expand Down

0 comments on commit fe3b788

Please sign in to comment.