Closed kkovary closed 1 year ago
In the datamol package, the open_datamol_data_file function is used to open a file and retrieve its name. However, the file is not being properly closed after its name is retrieved, which is causing a ResourceWarning.
open_datamol_data_file
ResourceWarning
The offending line of code is: https://github.com/datamol-io/datamol/blob/22b5bb042bd166b2faa61476713ccd6ed521479b/datamol/mol.py#L48
In the datamol package, the
open_datamol_data_file
function is used to open a file and retrieve its name. However, the file is not being properly closed after its name is retrieved, which is causing aResourceWarning
.The offending line of code is: https://github.com/datamol-io/datamol/blob/22b5bb042bd166b2faa61476713ccd6ed521479b/datamol/mol.py#L48