Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate checkpoint files when config dict changes #382

Open
rmjarvis opened this issue Jul 20, 2023 · 1 comment
Open

Invalidate checkpoint files when config dict changes #382

rmjarvis opened this issue Jul 20, 2023 · 1 comment

Comments

@rmjarvis
Copy link
Contributor

The docs have this warning currenty:

.. warning::

    Be careful to manually delete any check-point files if you have made any changes to to the configuration between runs.  Currently, *imSim* only checks if a file for a individual sensor already exists.

I think we can fix this by including a hash of the base dict in the checkpoint "name" to automatically start over when the config file changes.

@cwwalter
Copy link
Member

This would be a good idea. I just got bitten by this in a way I was surprised by.

I was making changes to stamp.py. There were some mistakes but when I ran the program, it was fine and they didn't get caught. That's because the stamp/output was being skipped all together due to the presense of the checkpoints. It was caught by the tests in the CI. It took me quite a while to notice what was going on.

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

No branches or pull requests

2 participants