Skip to content

Conversation

@Stephen0512
Copy link

This PR fixes several cases where files and images were opened without being explicitly closed.

Previously, some code paths did not close files and images explicitly, which could leave file descriptors open in long-running processes or batch workflows. This change ensures proper resource management by using context managers to handle file closure.

Code that previously used manual file closing (close()) has also been updated to use context managers for consistency.

The issue was identified during an ongoing research project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant