Skip to content

Commit 5744675

Browse files
committed
Remove unecessary variables
1 parent 88f1fff commit 5744675

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stagpy/plates.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,9 @@ def plot_scalar_field(step, fieldname, ridges, trenches):
344344
def main_plates(sdat):
345345
"""Plot several plates information."""
346346
# averaged horizontal surface velocity needed for redimensionalisation
347-
uprof_averaged, radius, _ = sdat.walk.filter(rprofs=True)\
348-
.rprofs_averaged['vhrms']
349347
isurf = _isurf(next(iter(sdat.walk)))
350-
vrms_surface = uprof_averaged[isurf]
348+
vrms_surface = sdat.walk.filter(rprofs=True)\
349+
.rprofs_averaged['vhrms'].values[isurf]
351350

352351
# determine names of files
353352
fnames = ['plate_velocity', 'distance_subd']

0 commit comments

Comments
 (0)