Skip to content

Conversation

@PhysFoley
Copy link
Member

The DataIO class implicitly assumes that the simulations being analyzed are completed. This leads to unexpected behavior when using ionerdss to check simulation progress in a notebook with persistent state. The first time a plot is made, the data file is cached, and subsequent plotting calls only ever show old, out-of-date data.

This PR adds basic cache invalidation to DataIO, by also storing the time code of when the file was last modified alongside the cached data. DataIO will now first check whether the file has been changed since it was cached before proceeding, and will re-load the data from disk if it has been modified.

@PhysFoley PhysFoley merged commit e0a121a into JohnsonBiophysicsLab:main Dec 10, 2025
1 check passed
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