Skip to content

Conversation

@alongd
Copy link
Member

@alongd alongd commented Sep 7, 2025

use dict[key], not dict(key) in plotter

@alongd alongd requested a review from Copilot September 7, 2025 07:26
Copy link

Copilot AI left a 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.

Copy link
Collaborator

@kfir4444 kfir4444 left a 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?

@alongd alongd force-pushed the nbs branch 3 times, most recently from 04d2bda to 277433f Compare December 31, 2025 15:18
use `dict[key]`, not `dict(key)` in plotter
To avoid errors like:
AssertionError: 160.00001525878906 != 160 within 5 places (1.52587890625e-05 difference)
Copy link
Collaborator

@kfir4444 kfir4444 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kfir4444 kfir4444 merged commit ab32e19 into main Jan 3, 2026
6 checks passed
@kfir4444 kfir4444 deleted the nbs branch January 3, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants