Skip to content

Commit 1cd201a

Browse files
committed
Fix docstrings in processing
1 parent c31d744 commit 1cd201a

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

stagpy/processing.py

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def r_edges(step):
115115
"""Cell border.
116116
117117
Args:
118-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
119-
instance.
118+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
120119
Returns:
121120
tuple of :class:`numpy.array`: the position of the bottom and top walls
122121
of the cells. The two elements of the tuple are identical.
@@ -135,8 +134,7 @@ def delta_r(step):
135134
"""Cells thickness.
136135
137136
Args:
138-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
139-
instance.
137+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
140138
Returns:
141139
tuple of :class:`numpy.array` and None: the thickness of the cells.
142140
The second element of the tuple is None.
@@ -159,8 +157,7 @@ def diff_prof(step):
159157
"""Diffusion.
160158
161159
Args:
162-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
163-
instance.
160+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
164161
Returns:
165162
tuple of :class:`numpy.array`: the diffusion and the radial position
166163
at which it is evaluated.
@@ -183,8 +180,7 @@ def diffs_prof(step):
183180
This computation takes sphericity into account if necessary.
184181
185182
Args:
186-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
187-
instance.
183+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
188184
Returns:
189185
tuple of :class:`numpy.array`: the diffusion and the radial position
190186
at which it is evaluated.
@@ -199,8 +195,7 @@ def advts_prof(step):
199195
This computation takes sphericity into account if necessary.
200196
201197
Args:
202-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
203-
instance.
198+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
204199
Returns:
205200
tuple of :class:`numpy.array` and None: the scaled advection.
206201
The second element of the tuple is None.
@@ -214,8 +209,7 @@ def advds_prof(step):
214209
This computation takes sphericity into account if necessary.
215210
216211
Args:
217-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
218-
instance.
212+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
219213
Returns:
220214
tuple of :class:`numpy.array` and None: the scaled downward advection.
221215
The second element of the tuple is None.
@@ -229,8 +223,7 @@ def advas_prof(step):
229223
This computation takes sphericity into account if necessary.
230224
231225
Args:
232-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
233-
instance.
226+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
234227
Returns:
235228
tuple of :class:`numpy.array` and None: the scaled upward advection.
236229
The second element of the tuple is None.
@@ -244,8 +237,7 @@ def energy_prof(step):
244237
This computation takes sphericity into account if necessary.
245238
246239
Args:
247-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
248-
instance.
240+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
249241
Returns:
250242
tuple of :class:`numpy.array`: the energy flux and the radial position
251243
at which it is evaluated.
@@ -262,8 +254,7 @@ def advth(step):
262254
radius.
263255
264256
Args:
265-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
266-
instance.
257+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
267258
Returns:
268259
tuple of :class:`numpy.array` and None: the theoretical advection.
269260
The second element of the tuple is None.
@@ -288,8 +279,7 @@ def init_c_overturn(step):
288279
crystallization of a SMO is assumed.
289280
290281
Args:
291-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
292-
instance.
282+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
293283
Returns:
294284
tuple of :class:`numpy.array`: the composition and the radial position
295285
at which it is evaluated.
@@ -323,8 +313,7 @@ def c_overturned(step):
323313
overturn happens.
324314
325315
Args:
326-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
327-
instance.
316+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
328317
Returns:
329318
tuple of :class:`numpy.array`: the composition and the radial position
330319
at which it is evaluated.
@@ -339,8 +328,7 @@ def stream_function(step):
339328
"""Stream function.
340329
341330
Args:
342-
step (:class:`~stagpy.stagyydata._Step`): a step of a StagyyData
343-
instance.
331+
step (:class:`~stagpy._step.Step`): a step of a StagyyData instance.
344332
Returns:
345333
:class:`numpy.array`: the stream function field, with four dimensions:
346334
x-direction, y-direction, z-direction and block.

0 commit comments

Comments
 (0)