pyNetLogo icon indicating copy to clipboard operation
pyNetLogo copied to clipboard

netlogo.report()

Open zargol7419 opened this issue 3 years ago • 0 comments

Hi, I am using pynetlogo package to write and read some attributes for my agents. In my NetLogo model, I have assigned 156 wells as agents, and each one has its own flow rate named Debi. As you can see in the attached picture, I have defined Debi using matrix extension and I wanna use pynetlogo to read this matrix and save it as a variable as I wanna import this variable in another software named Modflow to run an existing model then report the results. image

I tried -----> Debiwel = netlogo.report('map [s -> [Debi] of s] sort wels') code to receive Debi variable but I got this error: image Is it possible to get a matrix attribute from NetLogo using NetLogo.report ? What should I do to execute the aforementioned process? Thanks in advance for your answering. I appreciate it.

zargol7419 avatar Aug 20 '22 09:08 zargol7419