Skip to content

Commit

Permalink
safer way to find close incices
Browse files Browse the repository at this point in the history
  • Loading branch information
lheagy committed Nov 1, 2023
1 parent 6419180 commit 5e48e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoscilabs/dcip/DCWidgetResLayer2_5D.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ def PLOT(
VNprim = 0.0

else:
MInd = np.where(xSurface == M)
NInd = np.where(xSurface == N)
MInd = np.abs(xSurface - M).argmin(axis=0)
NInd = np.abs(xSurface - N).argmin(axis=0)

VM = phiTotalSurface[MInd[0]]
VN = phiTotalSurface[NInd[0]]
Expand Down

0 comments on commit 5e48e6e

Please sign in to comment.