Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file progression #312

Open
dridk opened this issue May 2, 2019 · 0 comments
Open

file progression #312

dridk opened this issue May 2, 2019 · 0 comments

Comments

@dridk
Copy link

dridk commented May 2, 2019

Hi,

I m trying to monitor progression when reading file...
Something like this :

   total = os.path.getsize(filename)
   for record in vcf.Reader(open(filename)):
             progression = record.bytes_read / total * 100  
             print(progression) 

How can I achieve this ? Is there a way to access the current raw line from reader._reader?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant