Skip to content

Commit fc0ab89

Browse files
committed
rm StagyyData.scales
1 parent 4af5284 commit fc0ab89

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

stagpy/_step.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from . import error, phyvars, stagyyparsers
1919
from .datatypes import Field, Rprof, Varr
20+
from .dimensions import Scales
2021

2122
if typing.TYPE_CHECKING:
2223
from typing import (
@@ -560,7 +561,7 @@ def bounds(self) -> Tuple[float, float]:
560561
rcmb = 0
561562
rbot = max(rcmb, 0)
562563
thickness = (
563-
step.sdat.scales.length
564+
Scales(step.sdat).length
564565
if step.sdat.par.get("switches", "dimensional_units", True)
565566
else 1
566567
)

stagpy/stagyydata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from . import _helpers, _step, conf, error, phyvars, stagyyparsers
2323
from ._step import Step
2424
from .datatypes import Rprof, Tseries, Vart
25-
from .dimensions import Scales
2625
from .parfile import StagyyPar
2726
from .stagyyparsers import FieldXmf, TracersXmf
2827

@@ -667,15 +666,13 @@ class StagyyData:
667666
Attributes:
668667
steps (:class:`_Steps`): collection of time steps.
669668
snaps (:class:`_Snaps`): collection of snapshots.
670-
scales (:class:`_Scales`): dimensionful scaling factors.
671669
refstate (:class:`_Refstate`): reference state profiles.
672670
"""
673671

674672
def __init__(self, path: PathLike):
675673
self._parpath = Path(path)
676674
if not self._parpath.is_file():
677675
self._parpath /= "par"
678-
self.scales = Scales(self)
679676
self.refstate = _Refstate(self)
680677
self.tseries = _Tseries(self)
681678
self.steps = _Steps(self)

0 commit comments

Comments
 (0)