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

Skip to content

Commit a3bd111

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

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

doc/source/f2py/advanced.rst

Lines changed: 5 additions & 5 deletions
130
Original file line numberDiff line numberDiff line change
@@ -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:
130

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 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