Jan Kwakkel

Results 545 comments of Jan Kwakkel

I had a quick look. I don't see any bug for `OrthogonalMooreGrid`. As we can see below, there is a nice diagonal from bottom left to top right at t=0...

I have done some further digging, but now for `HexGrid`. Indeed, something goes wrong here, but the problem seems to be in how the grid is wired up when `torus=true`....

Please check if the issue has been addressed by inspecting the code and closed PRs. I don't recall whether this was closed or not, but the fix seems trivial based...

Please reread my comment: > TLDR: the issue is the wiring of Hexgrid with torus=True, not anything to do with the caching. > update: it only happens if the grid...

I suggest keeping it backward compatible, so we don't need to go to Mesa 4 to use this new stuff. Having duplicate tests is a small price to pay for...

I have been wondering about this issue ever since I did the cleanup over half a year ago. I see good arguments for both approaches. What I like about @Sahil-Chhoker's...

As can be seen in the performance benchmarks, shifting from stdlib random to numpy.random.default_rng comes with a performance hit. I dug into this a bit more. The two main random...

Given how common it is to draw a single random number (i.e., `random.random()`, I was wondering about adding a shorthand for this and see how fast this was. ```python def...

> I don't know if it's a good idea, but: Can you pre-generate an array (like a 100 or a 1000), use those numbers, and everytime you used up the...

I'll try to take another look at this somewhere this week. As a first step, I'll add the wrapper idea to the model class so you can just do `model.rand`...