Skip to content

Commit

Permalink
Another couple of np.complex_ examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Jun 18, 2024
1 parent 4abc94e commit 2e83c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipy/core/reference/coordinate_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def safe_dtype(*dtypes):
Examples
--------
>>> c1 = CoordinateSystem('ij', 'input', coord_dtype=np.float32)
>>> c2 = CoordinateSystem('kl', 'input', coord_dtype=np.complex_)
>>> c2 = CoordinateSystem('kl', 'input', coord_dtype=np.complex128)
>>> safe_dtype(c1.coord_dtype, c2.coord_dtype)
dtype('complex128')
Expand Down Expand Up @@ -385,7 +385,7 @@ def product(*coord_systems, **kwargs):
Examples
--------
>>> c1 = CoordinateSystem('ij', 'input', coord_dtype=np.float32)
>>> c2 = CoordinateSystem('kl', 'input', coord_dtype=np.complex_)
>>> c2 = CoordinateSystem('kl', 'input', coord_dtype=np.complex128)
>>> c3 = CoordinateSystem('ik', 'in3')
>>> print(product(c1, c2))
Expand Down

0 comments on commit 2e83c7f

Please sign in to comment.