Skip to content
Snippets Groups Projects
Commit 2c9e9879 authored by Maximilian Schmidt, blaustein's avatar Maximilian Schmidt, blaustein
Browse files

Fix bug in pop_rate_dists: the generator has to be copied to be available for use later

parent 192970eb
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
......@@ -282,7 +282,7 @@ class Analysis:
pops=params['pops'])
elements = [('histogram',), ('stats-mu',), ('stats-sigma',)]
iter_list = [tuple(chain.from_iterable(prod)) for
prod in product(iterator, elements)]
prod in product(copy(iterator), elements)]
# Check if population rates have been stored with the same parameters
self.pop_rate_dists = ah._check_stored_data(os.path.join(self.output_dir,
'pop_rate_dists'),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment