Skip to content

Commit 52fafe9

Browse files
committed
Commands use default path of StagyyData
The default path of a StagyyData instance is conf.core.path, this is now used by commands implementations.
1 parent 09ed0ee commit 52fafe9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

stagpy/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def info_cmd():
2222
conf.info
2323
"""
2424
varlist = [var for var in conf.info.output.replace(',', ' ').split()]
25-
sdat = stagyydata.StagyyData(conf.core.path)
25+
sdat = stagyydata.StagyyData()
2626
lsnap = sdat.snaps[-1]
2727
lstep = sdat.steps[-1]
2828
print('StagYY run in {}'.format(sdat.path))

stagpy/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def cmd():
282282
conf.field
283283
conf.core
284284
"""
285-
sdat = StagyyData(conf.core.path)
285+
sdat = StagyyData()
286286
sovs = set_of_vars(conf.field.plot)
287287
minmax = {}
288288
if conf.plot.cminmax:

stagpy/plates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def cmd():
778778
conf.plot
779779
conf.core
780780
"""
781-
sdat = StagyyData(conf.core.path)
781+
sdat = StagyyData()
782782
conf.plates.plot = set_of_vars(conf.plates.plot)
783783
if not conf.plates.vzcheck:
784784
conf.scaling.dimensional = True

stagpy/refstate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def cmd():
4040
conf.core
4141
conf.plot
4242
"""
43-
sdat = StagyyData(conf.core.path)
43+
sdat = StagyyData()
4444
if sdat.refstate.adiabats is None:
4545
return
4646

stagpy/rprof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def cmd():
203203
conf.rprof
204204
conf.core
205205
"""
206-
sdat = StagyyData(conf.core.path)
206+
sdat = StagyyData()
207207
if sdat.rprof is None:
208208
return
209209

stagpy/time_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def cmd():
171171
conf.time
172172
conf.core
173173
"""
174-
sdat = StagyyData(conf.core.path)
174+
sdat = StagyyData()
175175
if sdat.tseries is None:
176176
return
177177

0 commit comments

Comments
 (0)