Skip to content

Commit c4bdf32

Browse files
committed
Consistent name of plates ascii file
1 parent 534cdce commit c4bdf32

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stagpy/plates.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import numpy as np
99
from scipy.signal import argrelmin, argrelmax
1010

11-
from . import conf, error, field, phyvars
12-
from ._helpers import saveplot, list_of_vars
11+
from . import conf, error, field, phyvars, _helpers
12+
from ._helpers import saveplot
1313
from ._step import Field
1414
from .stagyydata import StagyyData
1515

@@ -192,7 +192,7 @@ def plot_at_surface(snap, names):
192192
Surface diagnotics can be valid surface field names, field names,
193193
or `"dv2"` which is d(vphi)/dphi.
194194
"""
195-
for vfig in list_of_vars(names):
195+
for vfig in _helpers.list_of_vars(names):
196196
fig, axes = plt.subplots(nrows=len(vfig), sharex=True,
197197
figsize=(12, 2 * len(vfig)))
198198
axes = [axes] if len(vfig) == 1 else axes
@@ -346,7 +346,8 @@ def cmd():
346346
time = []
347347
istart, iend = None, None
348348

349-
with open(f'plates_trenches_{sdat.walk.stepstr}.dat', 'w') as fid:
349+
oname = _helpers.out_name(f'plates_trenches_{sdat.walk.stepstr}')
350+
with open(f'{oname}.dat', 'w') as fid:
350351
fid.write('# istep time time_My phi_trench vel_trench '
351352
'distance phi_cont age_trench_My\n')
352353

0 commit comments

Comments
 (0)