El dc 16 de 05 del 2007 a les 07:04 -0400, en/na David L va escriure:
> The formatting was lost in the original email.  Hopefully the attachment 
> will work better.

The format was fine (at least for me). 

> >From: "David L" <[EMAIL PROTECTED]>
> >To: [email protected]
> >Subject: [Pytables-users] problem with "where" clause
> >Date: Tue, 15 May 2007 17:15:03 -0400
> >
> >Hi,
> >
> >I've been having problems using the "where" clause and I would appreciate 
> >any suggestions.
> >
> >The problem occurs when I try to use a "where" clause to access records 
> >that are near the end of the file and when the file has been built from 
> >multiple runs.   The code below demonstrates the problem.
> >
> >If the script below is started with the command line parameter of "good", 
> >it generates a table of 40,000 records.  Then if the script is run with the 
> >command line parameter of "read", the record is found with both the 
> >sequential and indexed searches.
> >
> >If the script is started with the command line parameter of "bad", the 
> >table is generated in separate passes.  Each pass writes opens the file, 
> >writes 1000 records and closes the file.  Then if the script is run with 
> >the command line parameter of "read", the record is only found in the 
> >sequential search.
> >
> >A possibly related problem is that when the "bad" version of the file is 
> >generated, ptdump crashes.

That's strange.  Your script works fine with PyTables 1.4:

$ PYTHONPATH=. python2.5 bug-index.py bad
start, stop = 0, 1000
start, stop = 1000, 2000
[snip]
start, stop = 39000, 40000
$ PYTHONPATH=. python2.5 bug-index.py read
Particle:  36001
indexed search found 1 matches
Particle:  36001
sequential search found 1 matches
Closing remaining opened files...  test.h5... done.  test.h5... done.

Which version of the software are you using? Can you send the output of:

$ python test_all.py --show-versions

Thanks,

-- 
Francesc Altet    |  Be careful about using the following code --
Carabos Coop. V.  |  I've only proven that it works, 
www.carabos.com   |  I haven't tested it. -- Donald Knuth


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to