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

Thorny nondeterministic caching bug #64

Open
peterhurford opened this issue Mar 15, 2024 · 0 comments
Open

Thorny nondeterministic caching bug #64

peterhurford opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@peterhurford
Copy link
Collaborator

FileNotFoundError                         Traceback (most recent call last)
File <timed exec>:2

File ~/.pyenv/versions/3.11.0/envs/dev/lib/python3.11/site-packages/squigglepy/bayes.py:243, in bayesnet(event_fn, n, find, conditional_on, reduce_fn, raw, memcache, memcache_load, memcache_save, reload_cache, dump_cache_file, load_cache_file, cache_file_primary, verbose, cores)
    241 for c in range(cores):
    242     _tick_tqdm(pbar, 1)
--> 243     with open("test-core-{}.sqcache".format(c), "rb") as infile:
    244         events += decoder.decode(infile.read())
    245     os.remove("test-core-{}.sqcache".format(c))

FileNotFoundError: [Errno 2] No such file or directory: 'test-core-3.sqcache'

It's a different cache file each time. Bug is nondeterministic (works ~50% of the time).

@peterhurford peterhurford added the bug Something isn't working label Mar 15, 2024
@peterhurford peterhurford added this to the v0.28 milestone Mar 15, 2024
@peterhurford peterhurford modified the milestones: v0.28, v0.29 Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant