Replies: 1 comment
-
I think this would be useful. What changes would be required to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All files should be closed after reading.
psrfits
does that to some extent but forfilterbanks
it needs to beself.fp.close()
.Those who do not know about the inner workings wouldn't know how to close files.
Should we introduce a context manager for
your
? the idea would be to do something like:implementation is fairly easy, we can create
__enter__
and__exit__
inyour.Your
as follows:Beta Was this translation helpful? Give feedback.
All reactions