I tried closing the mapping, and I did indeed check to see if the
filter was affecting, but there is exactly one record in the database
that doesn't have a clusterid.

I'll post the script now, and re-run in just a while. There are two
files posted:

The build script:
http://kmdaily.pastebin.com/d77aecc96

A dependency of the build script for setting up the database
connection:
http://kmdaily.pastebin.com/d662d8363

Any questions about the latter should be directed to Paul Rigor (he's
a member of this group too).

On Jun 15, 10:47 am, Christopher Lee <l...@chem.ucla.edu> wrote:
> Hi Kenny,
> a few ideas for dissecting this problem:
>
> - you should close() the Mapping before creating another Mapping with  
> the same file name.  As a general rule, you should always close() a  
> Mapping object after you're done with it.  I doubt this is relevant to  
> the iterator problem, though.
>
> - could you also count the events outside the if event.clusterid  
> conditional?  we should make sure that the problem isn't due to this  
> conditional somehow filtering out results that the iterator is  
> returning.
>
> - I think we should remove worldbase from the equation.  I.e. can you  
> post a script that shows the construction of the events AnnotationDB  
> followed immediately by counting the results of iteration from its  
> itervalues() vs. values(), and also counting the results of iteration  
> from its sliceDB.iteritems() vs. sliceDB.items()?  Also send us the  
> results you get with this new script. This would serve two purposes;  
> first, showing us the code that builds the AnnotationDB, and second  
> excluding worldbase from the problem.
>
> -- Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to 
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to