Setting seed for reproducible `PoissonGroup` patterns?

Is it possible? I see documentation for the seed function for device, but I’m not sure if it accomplishes what I would like. In my script I’m already setting the random seed for numpy via rng = np.random.default_rng(42) and I’d like to do the same for brian2

Hi @itq. Yes, by using the seed function you can get reproducible PoissonGroup patterns. The details of what this function does differs a bit between runtime and standalone mode, but in general it should do what you expect. See Random numbers — Brian 2 2.7.1 documentation for more details.

1 Like