NL4Py
NL4Py copied to clipboard
Bringing Your Turtles From NetLogo to Python 🐍🐢
``` self.java_server = self.__java_gateway.jvm.nl4py.server.NetLogoControllerServer() TypeError: 'JavaPackage' object is not callable ``` I make a connection by py4j-0.10.8.1.jar from Python to Java, but can't find nl4py.jar from jre. How to solove...
I am trying to replicate "modelcalibration" by changing netlogo_home and model_path, code runs without error but when I try to print list of parameters, output is empty. How can I...
I'm attempting to run EMD on many threads, and I am encountering this error after it has been running for some time: ``` Traceback (most recent call last): File "/home/lux/miniconda3/envs/emd/lib/python3.6/site-packages/py4j/java_gateway.py",...
It's working fine in Pycharm. However, when I pack it as .exe via Pyinstaller, there reported error "cannot load nl4py.startServer". what's the underlying reason behind?
is it possible to make it compatible with Netlogo v5 like py2Netlogo ? Thanks . I can do it myself if i know where i should look
I just want to run this script, but this comes out import nl4py import os file_to_open = os.path.join(".","spatialCOVID19-master","epiDEM COV_v13.nlogo") path_to_netlogo = 'C:/Program Files/NetLogo 6.1.1/' nl4py.startServer(path_to_netlogo) ws=nl4py.newNetLogoHeadlessWorkspace() ws.openModel(file_to_open) ws.closeModel() nl4py.deleteAllHeadlessWorkspaces() nl4py.stopServer()...