Skip to content

Commit ea227e5

Browse files
committed
simplify stagpy.datatypes doc
1 parent 519f76d commit ea227e5

File tree

2 files changed

+9
-45
lines changed

2 files changed

+9
-45
lines changed

docs/sources/apiref/datatypes.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,3 @@ datatypes
22
=========
33

44
.. automodule:: stagpy.datatypes
5-
6-
.. autoclass:: Varf
7-
.. autoclass:: Field
8-
.. autoclass:: Varr
9-
.. autoclass:: Rprof
10-
.. autoclass:: Vart
11-
.. autoclass:: Tseries

stagpy/datatypes.py

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
class Varf:
1414
"""Metadata of scalar field.
1515
16-
Attributes:
17-
description: short description of the variable.
18-
dim: dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
19-
dimensional values.
16+
`dim` is the dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
17+
dimensional values.
2018
"""
2119

2220
description: str
@@ -25,12 +23,7 @@ class Varf:
2523

2624
@dataclass(frozen=True)
2725
class Field:
28-
"""Scalar field and associated metadata.
29-
30-
Attributes:
31-
values: the field itself.
32-
meta: the metadata of the field.
33-
"""
26+
"""Scalar field and associated metadata."""
3427

3528
values: NDArray
3629
meta: Varf
@@ -40,13 +33,8 @@ class Field:
4033
class Varr:
4134
"""Metadata of radial profiles.
4235
43-
Attributes:
44-
description: short description of the variable if it is output by
45-
StagYY, function to compute it otherwise.
46-
kind: shorter description to group similar variables under the same
47-
label.
48-
dim: dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
49-
dimensional values.
36+
`dim` is the dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
37+
dimensional values.
5038
"""
5139

5240
description: str
@@ -56,13 +44,7 @@ class Varr:
5644

5745
@dataclass(frozen=True)
5846
class Rprof:
59-
"""Radial profile with associated radius and metadata.
60-
61-
Attributes:
62-
values: the profile itself.
63-
rad: the radial position.
64-
meta: the metadata of the profile.
65-
"""
47+
"""Radial profile with associated radius and metadata."""
6648

6749
values: NDArray
6850
rad: NDArray
@@ -73,13 +55,8 @@ class Rprof:
7355
class Vart:
7456
"""Metadata of time series.
7557
76-
Attributes:
77-
description: short description of the variable if it is output by
78-
StagYY, function to compute it otherwise.
79-
kind: shorter description to group similar variables under the same
80-
label.
81-
dim: dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
82-
dimensional values.
58+
`dim` is the dimension used to :func:`~stagpy.stagyydata.StagyyData.scale` to
59+
dimensional values.
8360
"""
8461

8562
description: str
@@ -89,13 +66,7 @@ class Vart:
8966

9067
@dataclass(frozen=True)
9168
class Tseries:
92-
"""A time series with associated time and metadata.
93-
94-
Attributes:
95-
values: the series itself.
96-
time: the time vector.
97-
meta: the metadata of the series.
98-
"""
69+
"""A time series with associated time and metadata."""
9970

10071
values: NDArray
10172
time: NDArray

0 commit comments

Comments
 (0)