File tree Expand file tree Collapse file tree 7 files changed +8
-14
lines changed
Expand file tree Collapse file tree 7 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def info_cmd() -> None:
3030 Other Parameters:
3131 conf.info
3232 """
33- sdat = stagyydata .StagyyData ()
33+ sdat = stagyydata .StagyyData (conf . core . path )
3434 lsnap = sdat .snaps [- 1 ]
3535 lstep = sdat .steps [- 1 ]
3636 print (f"StagYY run in { sdat .path } " )
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ def cmd() -> None:
351351 conf.field
352352 conf.core
353353 """
354- sdat = StagyyData ()
354+ sdat = StagyyData (conf . core . path )
355355 # no more than two fields in a subplot
356356 lovs = [[slov [:2 ] for slov in plov ] for plov in conf .field .plot ]
357357 minmax = {}
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def cmd() -> None:
385385 conf.plot
386386 conf.core
387387 """
388- sdat = StagyyData ()
388+ sdat = StagyyData (conf . core . path )
389389
390390 isurf = _isurf (next (iter (sdat .walk )))
391391 vrms_surf = sdat .walk .filter (rprofs = True ).rprofs_averaged ["vhrms" ].values [isurf ]
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def cmd() -> None:
4444 conf.core
4545 conf.plot
4646 """
47- sdat = StagyyData ()
47+ sdat = StagyyData (conf . core . path )
4848
4949 for var in conf .refstate .plot :
5050 plot_ref (sdat , var )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def cmd() -> None:
9797 conf.rprof
9898 conf.core
9999 """
100- sdat = StagyyData ()
100+ sdat = StagyyData (conf . core . path )
101101
102102 if conf .rprof .grid :
103103 for step in sdat .walk .filter (rprofs = True ):
Original file line number Diff line number Diff line change @@ -756,11 +756,7 @@ class StagyyData:
756756 path: path of the StagYY run. It can either be the path of the
757757 directory containing the par file, or the path of the par file. If
758758 the path given is a directory, the path of the par file is assumed
759- to be path/par. If no path is given (or None) it is set to
760- ``conf.core.path``.
761-
762- Other Parameters:
763- conf.core.path: the default path.
759+ to be path/par.
764760
765761 Attributes:
766762 steps (:class:`_Steps`): collection of time steps.
@@ -769,9 +765,7 @@ class StagyyData:
769765 refstate (:class:`_Refstate`): reference state profiles.
770766 """
771767
772- def __init__ (self , path : Optional [PathLike ] = None ):
773- if path is None :
774- path = conf .core .path
768+ def __init__ (self , path : PathLike ):
775769 self ._parpath = Path (path )
776770 if not self ._parpath .is_file ():
777771 self ._parpath /= "par"
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def cmd() -> None:
132132 conf.time
133133 conf.core
134134 """
135- sdat = StagyyData ()
135+ sdat = StagyyData (conf . core . path )
136136 if sdat .tseries is None :
137137 return
138138
You can’t perform that action at this time.
0 commit comments