[Numpy-discussion] can I mapping a np.darray class with a text file instead of reading the file in to mem?

2010-10-02 Thread kee chen
Dear All, I have memory problem in reading data from text file to a np.darray. It is because I have low mem on my pc and the data is too big. Te data is stored as 3 cols text and may have 1000 records look like this 0.64984279 0.587856227 0.827348652 0.33463377 0.210916859 0.608797746 0.23026

[Numpy-discussion] how to store variable length string in array and get single char by it's position?

2010-09-14 Thread kee chen
Dear All, Suppose I have a list group some kind like DNA sequence: 1 ATGCATGCAATTGGCC 2 ATGCATGCAATTGGCCATCD 3 CATGCAATTGGC .. 10 CATGCAAATTGGC the string length of each item is not sure and may get change/update later, then how can I store above in a numpy array (in