-
Notifications
You must be signed in to change notification settings - Fork 138
Fix elastic collision #676
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
Conversation
|
However, some disks would pass each other. Is there any tip so I can fix that? socialdist2.mp4 |
|
The new logic using dv looks better but fails to pass one collision test. socialdist2.mp4 |
|
I'm reading these lines in tests. Agents.jl/test/continuous_space_tests.jl Lines 324 to 330 in 8312904
In the tests, only 50 out of 100 agents are movable, so |
|
Thanks so much, this is a great fix! Yes please, go ahead and correct the test. |
|
Ummm @sosiristseng are you perhaps using an automated linter? Can you please revert the linter induced changes? We do not use a linter yet in Agents.jl, but will in the future. Until then, it is best to not include linting changes in pull requests. |
|
I left my formatter on. Will fix that, too. Edit: It's done. Please have a look. |
Codecov Report
@@ Coverage Diff @@
## main #676 +/- ##
=======================================
Coverage 90.42% 90.42%
=======================================
Files 27 27
Lines 1733 1733
=======================================
Hits 1567 1567
Misses 166 166
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Datseris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, we appreciate the fix!
|
Hello, since this is a correctness fix, would you deploy a patch version (like 5.4.4) containing this PR? Or would you like this PR to go into a bigger new version (like 5.5.0) with other PRs? |
|
I will release 5.5 soon with this in. Can't promise when though! At the moment the |

fix #675
I also renewed the facing logic to: