Commit bf35c961 authored by j-mark-hou's avatar j-mark-hou Committed by Qiwei Ye
Browse files

python package: use is_numeric check in is_1d_list in basics.py (#740)

parent 1c92e75d
......@@ -66,7 +66,7 @@ def is_numpy_1d_array(data):
def is_1d_list(data):
"""Check is 1d list"""
return isinstance(data, list) and \
(not data or isinstance(data[0], numeric_types))
(not data or is_numeric(data[0]))
def list_to_1d_numpy(data, dtype=np.float32, name='list'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment