Skip to content

Commit 1973fcc

Browse files
committed
Fix indexing of uprof_averaged
1 parent 2977583 commit 1973fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stagpy/plates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def main_plates(sdat):
609609
if sdat.par['boundaries']['air_layer']:
610610
dsa = sdat.par['boundaries']['air_thickness']
611611
isurf = np.argmin(abs(radius - radius[-1] + dsa))
612-
vrms_surface = uprof_averaged.iloc[isurf]
612+
vrms_surface = uprof_averaged[isurf]
613613
isurf = np.argmin(abs((1 - dsa) - radius))
614614
isurf -= 4 # why different isurf for the rest?
615615
else:

0 commit comments

Comments
 (0)