BUNPC / pysnirf2

Python package for reading, writing and validating Shared Near Infrared Spectroscopy Format (SNIRF) files
GNU General Public License v3.0
15 stars 11 forks source link

Are files being left open? #25

Closed sstucker closed 2 years ago

sstucker commented 2 years ago

From talks in #22 I am concerned that the management of the underlying files is not being handled well.

I fixed an issue with the file closing in #23 that should iron most of this out, but I still see the warnings in the tests.

Depending on my environment I get ResourceWarningss and occasionally run into a surprising OSError file in use error.