commit
58587b5e07
1 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ Python 3 compatibility.
|
|||
"""
|
||||
|
||||
import sys
|
||||
import numpy as np
|
||||
|
||||
_ver = sys.version_info
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ if is_py2:
|
|||
|
||||
str = unicode
|
||||
basestring = basestring
|
||||
numeric_types = (int, long, float)
|
||||
numeric_types = (int, long, float, np.int64, np.float64)
|
||||
|
||||
|
||||
elif is_py3:
|
||||
|
|
@ -37,4 +38,4 @@ elif is_py3:
|
|||
|
||||
str = str
|
||||
basestring = (str, bytes)
|
||||
numeric_types = (int, float)
|
||||
numeric_types = (int, float, np.int64, np.float64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue