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

Wolf-sheep example default **should not** issue warnings #62

Closed
platipodium opened this issue Jun 14, 2021 · 1 comment
Closed

Wolf-sheep example default **should not** issue warnings #62

platipodium opened this issue Jun 14, 2021 · 1 comment

Comments

@platipodium
Copy link

On running the wolf-sheep model, the default installation should not issue warnings, but it does:

python examples/wolf-sheep/model.py

/neworder/examples/wolf-sheep/wolf_sheep.py:257: UserWarning: Attempting to set identical bottom == top == 0 results in singular transformations; automatically expanding.
  self.ax_t3.set_ylim([0, max(n/max(len(self.wolves), 1))])
/neworder/examples/wolf-sheep/wolf_sheep.py:260: RuntimeWarning: invalid value encountered in true_divide
  for rect, h in zip(self.ax_ss, n/len(self.sheep)):
/neworder/examples/wolf-sheep/wolf_sheep.py:262: UserWarning: Attempting to set identical bottom == top == 0 results in singular transformations; automatically expanding.
  self.ax_t4.set_ylim([0, max(n/max(len(self.sheep), 1))])
@platipodium
Copy link
Author

This is associated with openjournals/joss-reviews#3351

virgesmith added a commit that referenced this issue Jun 14, 2021
…uses a population explosion. this also stops the warning messages that were occurring #62
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