Skip to content

Fix minor bug in get_number_summary - Use class instead of instance for static fields #837

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

LLeon360
Copy link
Contributor

In get_number_summary, a few static fields and functions were being accessed from an instance of ScenarioDescription rather than the class.

What changes do you make in this PR?

In scenario_description.py the get_number_summary function does not work because it tries to use an instance of ScenarioDescription instead of the class itself to try to call static functions and use constants that are defined in the class. I replaced these instances with the class.

  • Please describe why you create this PR

Fix minor bug

Checklist

  • [ X ] I have merged the latest main branch into current branch.
  • [ X ] I have run bash scripts/format.sh before merging.
  • Please use "squash and merge" mode.

In `get_number_summary`, a few static fields and functions were being accessed from an instance of ScenarioDescription rather than the class.
@QuanyiLi QuanyiLi merged commit 94db146 into metadriverse:main Apr 25, 2025
26 checks passed
@QuanyiLi
Copy link
Member

@LLeon360 Thank you for the bug-fixing! I have merged this into the main branch.

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

Successfully merging this pull request may close these issues.

2 participants