[Pytables-users] turning 1-d numpy array to 2-d

2008-07-23 Thread Kevin Christman
like kExp to be a 2-dimensional numpy array so that I can pick out columns like kExp[:,0]. I've tried doing kExp = numpy.array(kExp) but that still doesn't turn kExp to be a 2-dimensional numpy array. Thanks for an

Re: [Pytables-users] Fwd: Float32 accuracy

2008-03-03 Thread Kevin Christman
I haven't used Python's Decimal module but you might find it helpful: http://docs.python.org/lib/module-decimal.html Kevin Christman - Original Message From: Francesc Altet <[EMAIL PROTECTED]> To: pytables-users@lists.sourceforge.net Sent: Monday, March 3, 2008 2:

[Pytables-users] removing rows in a loop

2008-02-19 Thread Kevin Christman
I am having problems removing rows. Since removeRows() doesn't accept a list of indices to be removed (it only accepts a single value or a range), I tried to remove the rows one by one, where DryExp is my table: listofBadNums = ['NJ451','AJ322','B321']#actually this is just a short test li

[Pytables-users] populating nested tables

2008-02-15 Thread Kevin Christman
sorry about the mangled table and un-indented code. Here is the formatting preserved: http://docs.google.com/View?docid=dcmrvf8_31cfvc7vfs So I recognize that row.append() should be applied only *once*, and that my current code is bad. However, my question then is *how* does one fill the sub

[Pytables-users] populating nested tables

2008-02-14 Thread Kevin Christman
I have a question regarding nested tables. The populating a nested table example in the PyTables UserManual (pp. 44-45) only deals with a nested table that is called once and really doesn't subdivide. However, what if my data structure looks something like: MotorName ExpSet