[Neuroimaging] [nibabel] gifti.py:760: ResourceWarning: unclosed file

Daviet, Remi rdaviet at wharton.upenn.edu
Sat Dec 8 04:37:25 EST 2018


Hi everyone,

opening a gifti file with nib.load() twice seems to return a warning:
gifti.py:760: ResourceWarning: unclosed file

However, I do not find in the doc how to "unload" the file, to be able to reopen it at a later point without the warning.
Any suggestions?

Best
---
Remi Daviet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20181208/79a88d96/attachment.html>


More information about the Neuroimaging mailing list