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

docs/introduction.ipynb crashes on cell 13 (energy_df = netlogo.repeat_report()) #65

Closed
EwoutH opened this issue Jan 26, 2023 · 2 comments

Comments

@EwoutH
Copy link
Contributor

EwoutH commented Jan 26, 2023

The introduction notebook crashed on cell 13:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part.

See for a full error log cell 13 of https://github.com/EwoutH/pyNetLogo/blob/introduction-set-globals/docs/source/_docs/introduction.ipynb.

I validated the same error occurs with the unmodified notebook.

How to reproduce: Run introduction.ipynb.

@EwoutH EwoutH changed the title docs/introduction.ipynb crashes on energy_df = netlogo.repeat_report([ docs/introduction.ipynb crashes on cell 13 (energy_df = netlogo.repeat_report()) Jan 26, 2023
@EwoutH
Copy link
Contributor Author

EwoutH commented Mar 7, 2023

@quaquel I investigated this issue a bit further. I believe it's an error of this type.

Screenshot_100

Which is quite logical, since the number of wolves and sheep varies over time, so the length of the lists [energy] of wolves, [energy] of sheep and [sheep_str] of sheep also varries.

@quaquel
Copy link
Owner

quaquel commented Mar 7, 2023

This makes sense indeed. Now we have to come up with a fix,

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