Skip to content

Commit

Permalink
DOC: Added maximum_sctype to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
madphysicist committed Feb 27, 2019
1 parent 269d985 commit 194927d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions doc/source/reference/routines.dtype.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ Data type routines

Creating data types
-------------------

.. autosummary::
:toctree: generated/


dtype
format_parser

Expand Down Expand Up @@ -53,3 +51,4 @@ Miscellaneous
typename
sctype2char
mintypecode
maximum_sctype
1 change: 1 addition & 0 deletions numpy/core/numerictypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
'complex32', 'complex64', 'complex128', 'complex160',
'complex192', 'complex256', 'complex512', 'object']

@set_module('numpy')
def maximum_sctype(t):
"""
Return the scalar type of highest precision of the same kind as the input.
Expand Down
1 change: 0 additions & 1 deletion numpy/tests/test_public_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def test_numpy_namespace():
'get_include': 'numpy.lib.utils.get_include',
'int_asbuffer': 'numpy.core._multiarray_umath.int_asbuffer',
'mafromtxt': 'numpy.lib.npyio.mafromtxt',
'maximum_sctype': 'numpy.core.numerictypes.maximum_sctype',
'ndfromtxt': 'numpy.lib.npyio.ndfromtxt',
'recfromcsv': 'numpy.lib.npyio.recfromcsv',
'recfromtxt': 'numpy.lib.npyio.recfromtxt',
Expand Down

0 comments on commit 194927d

Please sign in to comment.