-
Notifications
You must be signed in to change notification settings - Fork 24
BugFix: NUMBER_BY_SYMBOL is a dict #798
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
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.
Pull Request Overview
This PR fixes a bug where NUMBER_BY_SYMBOL was incorrectly called as a function instead of being accessed as a dictionary. The change corrects the syntax from NUMBER_BY_SYMBOL(symbol) to NUMBER_BY_SYMBOL[symbol].
- Fixes incorrect function call syntax for dictionary access in the IRC trajectory animation function
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
kfir4444
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.
lgtm. I wonder why this hasn't shown in tests... Could we check that?
04d2bda to
277433f
Compare
use `dict[key]`, not `dict(key)` in plotter
To avoid errors like: AssertionError: 160.00001525878906 != 160 within 5 places (1.52587890625e-05 difference)
kfir4444
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.
lgtm
use
dict[key], notdict(key)in plotter