Skip to content

Commit 4e10972

Browse files
committed
Fix links in documentation of at_r and at_z
1 parent 9c1fd95 commit 4e10972

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stagpy/_step.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ def at_z(self, zval):
167167
"""Return iz closest to given zval position.
168168
169169
In spherical geometry, the bottom boundary is considered to be at z=0.
170-
Use :func:`~_step._Geometry.at_r` to find a cell at a given radial
171-
position.
170+
Use :meth:`at_r` to find a cell at a given radial position.
172171
"""
173172
if self.curvilinear:
174173
zval += self.rcmb
@@ -177,8 +176,7 @@ def at_z(self, zval):
177176
def at_r(self, rval):
178177
"""Return ir closest to given rval position.
179178
180-
If called in cartesian geometry, this is equivalent to
181-
:func:`~_step._Geometry.at_z`.
179+
If called in cartesian geometry, this is equivalent to :meth:`at_z`.
182180
"""
183181
return np.argmin(np.abs(self.r_coord - rval))
184182

0 commit comments

Comments
 (0)