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

AttributeError: 'Writer' object has no attribute 'close' #12

Closed
junjieahaha opened this issue Oct 16, 2017 · 1 comment
Closed

AttributeError: 'Writer' object has no attribute 'close' #12

junjieahaha opened this issue Oct 16, 2017 · 1 comment

Comments

@junjieahaha
Copy link

out_file = open('test.sam', 'w')
out_sam = Writer(out_file, in_sam.header)
out_sam.write(x)
out_sam.close()

it returns 'ttributeError: 'Writer' object has no attribute 'close''
so,could it be ' >>>out_file.close()'?

@mdshw5
Copy link
Owner

mdshw5 commented Oct 18, 2017

Hey @junjieahaha thanks for pointing out this discrepancy. I've added a .close() method for both the Reader and Writer classes and released the change in v0.1.2.

@mdshw5 mdshw5 closed this as completed Oct 18, 2017
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

2 participants