Here is my completely naive attempt which obviously doesn't work...
import numpy
class myType(numpy.void):
def __init__(self,val):
self.val = val
testType = numpy.dtype(myType)
val1 = myType(5)
val2 = myType(6)
foo = numpy.array([val1,val2],testType)
Any help would be greatly appreciated. Thanks,
- Matt Knox
Be one of the first to try Windows Live Mail.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion