|
8 | 8 | import numpy as np |
9 | 9 | from scipy.signal import argrelmin, argrelmax |
10 | 10 |
|
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 |
13 | 13 | from ._step import Field |
14 | 14 | from .stagyydata import StagyyData |
15 | 15 |
|
@@ -192,7 +192,7 @@ def plot_at_surface(snap, names): |
192 | 192 | Surface diagnotics can be valid surface field names, field names, |
193 | 193 | or `"dv2"` which is d(vphi)/dphi. |
194 | 194 | """ |
195 | | - for vfig in list_of_vars(names): |
| 195 | + for vfig in _helpers.list_of_vars(names): |
196 | 196 | fig, axes = plt.subplots(nrows=len(vfig), sharex=True, |
197 | 197 | figsize=(12, 2 * len(vfig))) |
198 | 198 | axes = [axes] if len(vfig) == 1 else axes |
@@ -346,7 +346,8 @@ def cmd(): |
346 | 346 | time = [] |
347 | 347 | istart, iend = None, None |
348 | 348 |
|
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: |
350 | 351 | fid.write('# istep time time_My phi_trench vel_trench ' |
351 | 352 | 'distance phi_cont age_trench_My\n') |
352 | 353 |
|
|
0 commit comments