From fcb0fef5c673ed0a5442b18bcd8c391907b4f9a7 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 20 Jun 2013 20:44:54 -0600 Subject: MAINT: Separate nan functions into their own module. New files lib/nanfunctions.py and lib/tests/test_nanfunctions.py are added and both the previous and new nan functions and tests are moved into them. The existing nan functions moved from lib/function_base are: nansum, nanmin, nanmax, nanargmin, nanargmax The added nan functions moved from core/numeric are: nanmean, nanvar, nanstd --- numpy/lib/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/lib/__init__.py') diff --git a/numpy/lib/__init__.py b/numpy/lib/__init__.py index 12acae95b..64a8550c6 100644 --- a/numpy/lib/__init__.py +++ b/numpy/lib/__init__.py @@ -1,11 +1,14 @@ from __future__ import division, absolute_import, print_function +import math + from .info import __doc__ from numpy.version import version as __version__ from .type_check import * from .index_tricks import * from .function_base import * +from .nanfunctions import * from .shape_base import * from .stride_tricks import * from .twodim_base import * @@ -18,7 +21,6 @@ from .utils import * from .arraysetops import * from .npyio import * from .financial import * -import math from .arrayterator import * from .arraypad import * @@ -36,6 +38,7 @@ __all__ += utils.__all__ __all__ += arraysetops.__all__ __all__ += npyio.__all__ __all__ += financial.__all__ +__all__ += nanfunctions.__all__ from numpy.testing import Tester test = Tester().test -- cgit v1.2.1