INET-Complexity / isle

11 stars 20 forks source link

error : Can't pickle local object 'ReinsuranceProfile.__init__.<locals>.<listcomp>.<lambda>' #135

Open uh-reza opened 4 years ago

uh-reza commented 4 years ago

as running start.py -f test1 --save_iterations 10

comes up with this error: Traceback (most recent call last): File "C:\WPy64-3740\notebooks\isle-master\start.py", line 113, in main save_simulation(t + 1, simulation, sim_params, exit_now=False) File "C:\WPy64-3740\notebooks\isle-master\start.py", line 148, in save_simulation pickle.dump(d, wfile, protocol=pickle.DEFAULT_PROTOCOL) AttributeError: Can't pickle local object 'ReinsuranceProfile.init...'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\WPy64-3740\notebooks\isle-master\start.py", line 428, in summary=summary, File "C:\WPy64-3740\notebooks\isle-master\start.py", line 126, in main raise Exception("".join(traceback.format_exception(*sys.exc_info()))[-900:]) Exception: Traceback (most recent call last): File "C:\WPy64-3740\notebooks\isle-master\start.py", line 113, in main save_simulation(t + 1, simulation, sim_params, exit_now=False) File "C:\WPy64-3740\notebooks\isle-master\start.py", line 148, in save_simulation pickle.dump(d, wfile, protocol=pickle.DEFAULT_PROTOCOL) AttributeError: Can't pickle local object 'ReinsuranceProfile.init...'

any idea, please?