SamSweere / xmm-epicpn-simulator

Simulation code for XMM-Newton EPIC-pn data using SIXTE and SIMPUT, designed to create training data for deep learning based super-resolution and de-noising.
https://academic.oup.com/mnras/article/517/3/4054/6694110
4 stars 2 forks source link

Check that opened files are being closed correctly #2

Closed bojobo closed 4 months ago

bojobo commented 1 year ago

Through the code, there are places where files have been opened but not closed correctly (like here). This can lead to bad behavior (see here). Especially if we are opening a lot of files in different processes.

SamSweere commented 4 months ago

Yeah, that's a bug