ercius / openNCEM

A collection of packages and tools for electron microscopy data analysis supported by the National Center for Electron Microscopy facility of the Molecular Foundry
GNU General Public License v3.0
60 stars 28 forks source link

Remove dangling references with on_memory=True #40

Closed sk1p closed 2 years ago

sk1p commented 2 years ago

Fixes #39

This works for the easy reproducer from #39 - it's possible that other fields need similar treatment.

As an alternative, these fields could also be cleared in __del__ prior to closing the mmap object.