Skip to content

Commit 0a5b2f0

Browse files
committed
This fix should be enabled for Numpy <= 1.7
1 parent ce9a5f9 commit 0a5b2f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎astropy/utils/compat/numpycompat.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# features/bugs we're checking for (ex:
1919
# astropy.table.table._BROKEN_UNICODE_TABLE_SORT)
2020
NUMPY_LT_1_6_1 = not minversion(np, '1.6.1')
21+
NUMPY_LE_1_7 = not minversion(np, '1.7.0', inclusive=False)
2122
NUMPY_LT_1_7 = not minversion(np, '1.7.0')
2223
NUMPY_LT_1_8 = not minversion(np, '1.8.0')
2324
NUMPY_LT_1_9 = not minversion(np, '1.9.0')
@@ -32,7 +33,7 @@ def _monkeypatch_unicode_mask_fill_values():
3233
This monkey patches the function that validates and corrects a
3334
fill value to handle this case.
3435
"""
35-
if NUMPY_LT_1_7 and six.PY2:
36+
if NUMPY_LE_1_7 and six.PY2:
3637
from numpy.ma import core as ma_core
3738
_check_fill_value_original = ma_core._check_fill_value
3839

0 commit comments

Comments
 (0)