FuturICT2/FIN4Simulations

We have multiple results even if we only run the simulation once

Opened this issue · 2 comments

.. and we're pretty clueless about why right now (number of processors?)

This behavior really puzzles me. I have run the current simulation and I get only one print of


                            __________   ____ 
          ________ __ _____/ ____/   |  / __ \
         / ___/ __` / __  / /   / /| | / / / /
        / /__/ /_/ / /_/ / /___/ ___ |/ /_/ / 
        \___/\__,_/\__,_/\____/_/  |_/_____/  
        by BlockScience
        
Execution Mode: single_proc: [<cadCAD.configuration.Configuration object at 0x7f38df8672d0>]

However, if I add just one print statement, I suddenly get five of them! I have prepared a branch to show that - The line to blame is

print(opportunistic_agents_claiming)
.

I remain quite puzzled. However, the number of lines in the json results file doesn't seem to change..

I posted a question about this on the cadCAD forum. Feel free to jump in or check the replies here: https://community.cadcad.org/t/multiple-execution-of-simulation-when-one-expected/138