from numpy import array
a = array([1,2,3])
a.dtype # dtype('int32')
a.dtype.kind # 'i', for 'integer'
s = array(['a','b','c'])
s.dtype # dtype('|S1')
s.dtype.kind # 'S' for 'string'
f = array([1., 2., 3.])
f.dtype # dtype('float64')
f.dtype.kind # 'f' for 'float'
Tags: array, type
Filed under BioPython, Python.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.