MaciekAber / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

close tabix file #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
def func1():
    # opens any tabix file
    inf = pysam.Tabixfile("chr1.tabix.gz")
    return

for i in range(10000):
    func1()

What is the expected output? What do you see instead?
You would assume that it will iterate, however, it failes at i = 2556

What version of the product are you using? On what operating system?
pysam-0.4.1 on mac os 10.5 with python 2.6

Please provide any additional information below.
Is the problem due to the lack of a close() method for pysam.Tabixfile

Original issue reported on code.google.com by ogano...@gmail.com on 22 Jul 2011 at 3:38

GoogleCodeExporter commented 8 years ago
Thanks, indeed that was the problem.

Well spotted,
Andreas

Original comment by andreas....@gmail.com on 19 Oct 2011 at 8:41