Support empty string values in NumpyProtocolHandler

This commit is contained in:
Mark Florisson
2016-04-27 12:06:45 +01:00
parent 0f14135a09
commit 6d1af98a64
3 changed files with 19 additions and 3 deletions

View File

@@ -45,7 +45,11 @@ def get_all_primitive_params(key):
"""
params = [key]
for datatype in PRIMITIVE_DATATYPES:
params.append(get_sample(datatype))
# Also test for empty strings
if key == 1 and datatype == 'ascii':
params.append('')
else:
params.append(get_sample(datatype))
return params