From c788fe30c164bdd511941f2c7e0101317079b8f1 Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Tue, 26 Jul 2011 17:50:26 -0500 Subject: ENH: missingdata: More progress towards NPY_ITER_USE_MASKNA flag support --- numpy/core/numeric.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a28ecdd19..3dd32cf01 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1330,15 +1330,15 @@ def array_repr(arr, max_line_width=None, precision=None, suppress_small=None): else: cName = "array" - skiptype = (arr.dtype.type in _typelessdata) and arr.size > 0 + skipdtype = (arr.dtype.type in _typelessdata) and arr.size > 0 if arr.flags.maskna: lst += ", maskna=True" # If everything is NA, can't skip the type - if skiptype and np.all(np.isna(arr)): - skiptype = False + if skipdtype and all(isna(arr)): + skipdtype = False - if skiptype: + if skipdtype: return "%s(%s)" % (cName, lst) else: typename = arr.dtype.name -- cgit v1.2.1