Becksteinlab / GromacsWrapper

GromacsWrapper wraps system calls to GROMACS tools into thin Python classes (GROMACS 4.6.5 - 2024 supported).
https://gromacswrapper.readthedocs.org
GNU General Public License v3.0
169 stars 53 forks source link

unclosed file in `config.py` #244

Closed njzjz closed 1 year ago

njzjz commented 1 year ago
/opt/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/gromacs/config.py:511: ResourceWarning: unclosed file <_io.TextIOWrapper name='/opt/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/gromacs/templates/gromacswrapper.cfg' mode='r' encoding='UTF-8'>
  self.read_file(open(default_cfg))
orbeckst commented 1 year ago

If you have a patch to fix then please contribute!