Problems with set-patch-size and resize world at startup

, ,

Hello,
I use the GIS extension to load a map in NetLogo. To fit the map, I use the startup primitive including:

When I open my model, everytime my view is bigger than it should. I then need to select my view, shortly take my mouse and drag at one of the edges (if you would resize the view). When I then open the edit field of the view, the patch size is 1 and I have to manually set it to 0.6. Why does it not work in the startup primitive?

I am unable to reproduce this issue without any other code or setup. Is there any reason why you need to set these properties programmatically instead of saving them in the Model Settings dialog? Also, it’s worth noting that resizing the View by dragging its edges as you described will change the patch size. If you want the patch size to stay at 0.6, you can’t resize the View manually. Let me know if you have any questions.

Isaac B.

Hey Isaac,

this is my interface right now:
Imgur

As you can see, the patch size is set to 0.6.

When I now close and reopen the model again, it looks like this:
Imgur

Also 0.6, but it is clearly not correct. Also, if i then type a random value in patch-size, say ok, then change it to 0.6 again, it still has the wrong size. Only when I drag it slightly with the mouse, then change it to 0.6 it gets smaller as in picture 1. Hope this is clear enough

Thank you for the clarifications, I am now able to reproduce the bug. Unfortunately there’s nothing you can do about it right now, but it will be resolved in the upcoming beta release of NetLogo 7. Once it’s released, feel free to download it and test it out!

Isaac B.

1 Like