NL4Py
NL4Py copied to clipboard
get_param_names()
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 fix this problem?
Hi @AyeshaZehra , thanks for using NL4Py. Could I have some more information so I can try to replicate your error, please? Are you running NL4Py/examples/ParameterCalibrationWithDEAP.ipynb
? What is your os and Java version?
Also, would you mind sharing your code and which NetLogo model are attempting this on?
Thank you for responding..I am currently using Core-i7, 10th gen, 64bit operating system, java version 16.0.2. I was attempting to replicate original code provided on github after so many failed attempts on my own NetLogo model. I have attached .jpeg of the code as well as output.
I copied chunks of NL4Py/examples/ParameterCalibrationWithDEAP.ipynb. and trying to get list of parameter names and ranges.
@AyeshaZehra have you tried commenting out the line if __name__=="__main__:"
?
Also, could you try using java version 1.8? I was unable to reproduce your issue with java 1.8, python 3.9, Windows system with similar specs.