Skip to content

Commit e49bb04

Browse files
committed
rm stale references to global conf in doc
1 parent a07df96 commit e49bb04

File tree

5 files changed

+6
-33
lines changed

5 files changed

+6
-33
lines changed

stagpy/_helpers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@
1818

1919

2020
def walk(sdat: StagyyData, conf: Config) -> _StepsView:
21-
"""Return view on configured steps slice.
22-
23-
Other Parameters:
24-
conf.core.snapshots: the slice of snapshots.
25-
conf.core.timesteps: the slice of timesteps.
26-
"""
21+
"""Return view on configured steps slice."""
2722
if conf.core.timesteps:
2823
return sdat.steps[conf.core.timesteps]
2924
return sdat.snaps[conf.core.snapshots]

stagpy/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Parse command line arguments and update :attr:`stagpy.conf`."""
1+
"""Parse command line arguments."""
22

33
from __future__ import annotations
44

stagpy/commands.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222

2323

2424
def info_cmd(conf: Config) -> None:
25-
"""Print basic information about StagYY run.
26-
27-
Other Parameters:
28-
conf.info
29-
"""
25+
"""Print basic information about StagYY run."""
3026
sdat = stagyydata.StagyyData(conf.core.path)
3127
lsnap = sdat.snaps[-1]
3228
lstep = sdat.steps[-1]
@@ -174,11 +170,7 @@ def config_pp(subs: Iterable[str], conf: Config) -> None:
174170

175171

176172
def config_cmd(conf: Config) -> None:
177-
"""Configuration handling.
178-
179-
Other Parameters:
180-
conf.config
181-
"""
173+
"""Configuration handling."""
182174
if conf.config.create:
183175
conf.default_().to_file_(CONFIG_LOCAL)
184176
else:

stagpy/rprof.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,7 @@ def plot_grid(step: Step, conf: Optional[Config] = None) -> None:
9292

9393

9494
def cmd(conf: Config) -> None:
95-
"""Implementation of rprof subcommand.
96-
97-
Other Parameters:
98-
conf.rprof
99-
conf.core
100-
"""
95+
"""Implementation of rprof subcommand."""
10196
sdat = StagyyData(conf.core.path)
10297
view = _helpers.walk(sdat, conf)
10398

stagpy/time_series.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ def plot_time_series(
3737
Args:
3838
sdat: a :class:`~stagpy.stagyydata.StagyyData` instance.
3939
names: time series names organized by figures, plots and subplots.
40-
41-
Other Parameters:
42-
conf.time.tstart: the starting time.
43-
conf.time.tend: the ending time.
4440
"""
4541
if conf is None:
4642
conf = Config.default_()
@@ -125,12 +121,7 @@ def compstat(
125121

126122

127123
def cmd(conf: Config) -> None:
128-
"""Implementation of time subcommand.
129-
130-
Other Parameters:
131-
conf.time
132-
conf.core
133-
"""
124+
"""Implementation of time subcommand."""
134125
sdat = StagyyData(conf.core.path)
135126
if sdat.tseries is None:
136127
return

0 commit comments

Comments
 (0)