Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 859564d

Browse files
committed
Tricky bug. Threads were playing with a mutable, non-local variable.
Just shallow copy the dict instead and things are OK.
1 parent 3730045 commit 859564d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def process_model_worker(leaf, language, model):
615615
del leaf[language]
616616
init = get_init_code(leaf, language)
617617
try:
618-
plot_options = leaf['config']['plot-options']
618+
plot_options = dict(leaf['config']['plot-options'])
619619
except KeyError:
620620
plot_options = {}
621621
plot_options['filename'] = leaf['id']

0 commit comments

Comments
 (0)