Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_param_names() #17

Open
AyeshaZehra opened this issue Aug 18, 2021 · 4 comments
Open

get_param_names() #17

AyeshaZehra opened this issue Aug 18, 2021 · 4 comments

Comments

@AyeshaZehra
Copy link

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?

@chathika
Copy link
Owner

chathika commented Aug 19, 2021

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?

@AyeshaZehra
Copy link
Author

NL4PY
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.

@AyeshaZehra
Copy link
Author

I copied chunks of NL4Py/examples/ParameterCalibrationWithDEAP.ipynb. and trying to get list of parameter names and ranges.

@AyeshaZehra AyeshaZehra changed the title get_param_nmes() get_param_names() Aug 20, 2021
@chathika
Copy link
Owner

chathika commented Aug 25, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants