Skip to content
Snippets Groups Projects
Unverified Commit 32662f64 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Reproduce toydata in case of *any* error

parent e972a23c
No related branches found
No related tags found
1 merge request!51Resolve "Make nnfwtbn Dask compatible"
......@@ -246,7 +246,7 @@ def mcmc(length, pdf):
def get():
try:
df = dd.read_hdf(".toydata.h5", "main")
except (FileNotFoundError, ValueError):
except Exception:
print("Cannot find cached data. Recreating toy data. This might take "
"some time...")
df = generate(10000)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment