mars0i / bali

Extended Lansing-Kremer model of Balinese crop/water management with added religious transmission
6 stars 1 forks source link

Waterstress plot not in sync with other plots #20

Closed mars0i closed 10 years ago

mars0i commented 10 years ago

Beginning with the second run after loading the model, the Waterstress plot seems to go at about half speed relative to the other two plots. i.e. when they're at timestep (year) 20, Waterstress is at about 10.

But if I use only one cropplan, then the waterstress plot races ahead, going about 10x faster.

mars0i commented 10 years ago

Does it not plot when say there's a NaN? Rather than throwing an exception? Could there be NaNs? A speculation.

mars0i commented 10 years ago

Fixed. Problem was set-histogram-num-bars command in setup, which was supposed to affect the crop plan distribution plot, but was affecting the water stress plot after the first time around. Can be fixed by first invoking set-current-plot, in theory, but that's not working right, and I don't mind if the distribution has 21 slots all of the time, set in the UI.