fix possible null return in StringDataRecord

This commit is contained in:
Michael James 2018-10-15 14:52:15 -06:00
parent e133129843
commit bec9280b66

View file

@ -30,8 +30,8 @@ class StringDataRecord(AbstractDataRecord):
else:
from pypies.impl.H5pyDataStore import vlen_str_type as dtype
#dtype.set_strpad(h5t.STR_NULLTERM)
numpyData = numpy.asarray(self.getStringData(), dtype)
return numpyData
return numpy.asarray(self.getStringData(), dtype)
return self.numpyData
def putDataObject(self, obj):
self.setStringData(obj)