Skip to content

Commit d5e0e39

Browse files
committed
Added imports to resolve Sphinx namespace errors.
1 parent 8369d48 commit d5e0e39

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

nibabel/batteryrunners.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
To run checks only, and return problem report objects:
2222
23+
>>> from nibabel.batteryrunners import BatteryRunner
2324
>>> def chk(obj, fix=False): # minimal check
2425
... return obj, Report()
2526
>>> btrun = BatteryRunner((chk,))

nibabel/quaternions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
they are applied on the left of the vector. For example:
2020
2121
>>> import numpy as np
22+
>>> from nibabel.quaternions import quat2mat
2223
>>> q = [0, 1, 0, 0] # 180 degree rotation around axis 0
2324
>>> M = quat2mat(q) # from this module
2425
>>> vec = np.array([1, 2, 3]).reshape((3,1)) # column vector

nibabel/spatialimages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
example, the Analyze data format needs an ``image`` and a ``header``
9292
file type for storage:
9393
94+
>>> import numpy as np
9495
>>> import nibabel as nib
9596
>>> data = np.arange(24, dtype='f4').reshape((2,3,4))
9697
>>> img = nib.AnalyzeImage(data, np.eye(4))

0 commit comments

Comments
 (0)