2323
2424
2525class _Geometry :
26-
2726 """Geometry information.
2827
2928 It is deduced from the information in the header of binary field files
@@ -101,7 +100,7 @@ def __init__(self, header, par):
101100 self ._curv_meshes = (t_mesh , p_mesh , r_mesh )
102101
103102 def _init_shape (self ):
104- """Determine shape of geometry"""
103+ """Determine shape of geometry. """
105104 shape = self ._par ['geometry' ]['shape' ].lower ()
106105 aspect = self ._header ['aspect' ]
107106 if self .rcmb is not None and self .rcmb >= 0 :
@@ -178,7 +177,6 @@ def __getattr__(self, attr):
178177
179178
180179class _Fields (Mapping ):
181-
182180 """Fields data structure.
183181
184182 The :attr:`Step.fields` attribute is an instance of this class.
@@ -308,7 +306,6 @@ def geom(self):
308306
309307
310308class _Tracers :
311-
312309 """Tracers data structure.
313310
314311 The :attr:`Step.tracers` attribute is an instance of this class.
@@ -349,7 +346,6 @@ def __iter__(self):
349346
350347
351348class Step :
352-
353349 """Time step data structure.
354350
355351 Elements of :class:`_Steps` and :class:`_Snaps` instances are all
@@ -369,27 +365,25 @@ class Step:
369365 >>> assert(sdat.snaps[n].isnap == n)
370366 >>> assert(sdat.steps[n].geom is sdat.steps[n].fields.geom)
371367 >>> assert(sdat.snaps[n] is sdat.snaps[n].fields.step)
368+
369+ Args:
370+ istep (int): the index of the time step that the instance
371+ represents.
372+ sdat (:class:`~stagpy.stagyydata.StagyyData`): the StagyyData
373+ instance owning the :class:`Step` instance.
374+
375+ Attributes:
376+ istep (int): the index of the time step that the instance
377+ represents.
378+ sdat (:class:`~stagpy.stagyydata.StagyyData`): the StagyyData
379+ instance owning the :class:`Step` instance.
380+ fields (:class:`_Fields`): fields available at this time step.
381+ sfields (:class:`_Fields`): surface fields available at this time
382+ step.
383+ tracers (:class:`_Tracers`): tracers available at this time step.
372384 """
373385
374386 def __init__ (self , istep , sdat ):
375- """Initialization of instances:
376-
377- Args:
378- istep (int): the index of the time step that the instance
379- represents.
380- sdat (:class:`~stagpy.stagyydata.StagyyData`): the StagyyData
381- instance owning the :class:`Step` instance.
382-
383- Attributes:
384- istep (int): the index of the time step that the instance
385- represents.
386- sdat (:class:`~stagpy.stagyydata.StagyyData`): the StagyyData
387- instance owning the :class:`Step` instance.
388- fields (:class:`_Fields`): fields available at this time step.
389- sfields (:class:`_Fields`): surface fields available at this time
390- step.
391- tracers (:class:`_Tracers`): tracers available at this time step.
392- """
393387 self .istep = istep
394388 self .sdat = sdat
395389 self .fields = _Fields (self , phyvars .FIELD , phyvars .FIELD_EXTRA ,
@@ -451,7 +445,6 @@ def isnap(self):
451445
452446
453447class EmptyStep (Step ):
454-
455448 """Dummy step object for nonexistent snaps.
456449
457450 This class inherits from :class:`Step`, but its :meth:`__getattribute__`
0 commit comments