Ghpython simulate agent system

Hi guys, I’m going to use class to perform agent system simulation. I have set 2 classes in it. “class AgentSystem” is used to create and update the agent, “class Agent” is to set the force condition of the agent. This file has two python components, one without perlin noise and the other with perlin noise. And the one that adds perlin noise has a problem, the system says “agent instance has no attribute”. But I don’t know how to change it because I think I have set attribute and would like to ask here if anyone can help me to solve it.

You need to install the perlin module before running the file, I have included the module in the attachment.