Closed ajrominger closed 1 year ago
and the frequency of the error increased with individuals_local
such that when individuals_local = 1000
the error happens 100% of the time
caused by #127. solved thanks to @isaacovercast but when asked how he would like to be credited he says "don't worry about it" yet again closing issues without touching a keyboard
even after the fix in b669ff7 there is still a problem here. Seems like for some reason on rare occasion the harmonic mean will be 0 but the species abundance will be 1
by pure and unbelievable luck i found an off-by-one bug in the for loop that updates harmonic means. the bug made it so the last element of the harmonic means vector never gets updated.
it was
for(int s = 0; s < d.nTipsP(0) - 1; s++)
I made it
for(int s = 0; s < d.nTipsP(0); s++)
no more msprime errors, but we should look for more of these off-by-oners
fixed by ee4fdfc
running this code:
It works >50% of the time, but occasionally throws this error:
Traceback shows