10000 MAINT,DOC: Fix doc fragments and tests · numpy/numpy@5c0ecb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c0ecb5

Browse files
committed
MAINT,DOC: Fix doc fragments and tests
1 parent f20d90c commit 5c0ecb5

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

doc/source/f2py/advanced.rst

Lines changed: 6 additions & 6 deletions
< 10000 td data-grid-cell-id="diff-b1671af59a6d582b27beb3b3ce769f94e058ac5bfd4f19cee247e2c92beaf26d-106-106-1" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">106
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For more information, see F2Py source code ``numpy/f2py/capi_maps.py``.
103103
Character strings
104104
=================
105105

106-
Assumed length chararacter strings
+
Assumed length character strings
107107
-----------------------------------
108108

109109
In Fortran, assumed length character string arguments are declared as
@@ -125,12 +125,12 @@ extra declaration for the corresponding argument that specifies the
125125
length in character selector part. For example, consider a Fortran
126126
file ``asterisk1.f90``:
127127

128-
.. include:: asterisk1.f90
128+
.. include:: ./code/asterisk1.f90
129129
:literal:
130130

131131
Compile it with ``f2py -c asterisk1.f90 -m asterisk1`` and then in Python:
132132

133-
.. include:: asterisk1_session.dat
133+
.. include:: ./code/results/asterisk1_session.dat
134134
:literal:
135135

136136
Notice that the extra declaration ``character(f2py_len=12) s`` is
@@ -139,11 +139,11 @@ can use C-expressions as a length value.
139139

140140
In the following example:
141141

142-
.. include:: asterisk2.f90
142+
.. include:: ./code/asterisk2.f90
143143
:literal:
144144

145-
the lenght of output assumed length string depends on an input
145+
the length of the output assumed length string depends on an input
146146
argument ``n``, after wrapping with F2PY, in Python:
147147

148-
.. include:: asterisk2_session.dat
148+
.. include:: ./code/results/asterisk2_session.dat
149149
:literal:
File renamed without changes.
File renamed without changes.

numpy/f2py/tests/test_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_docdir():
1111
return os.path.abspath(os.path.join(
1212
os.path.dirname(__file__),
1313
'..', '..', '..',
14-
'doc', 'source', 'f2py'))
14+
'doc', 'source', 'f2py', 'code'))
1515

1616

1717
pytestmark = pytest.mark.skipif(

0 commit comments

Comments
 (0)
0