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

Coordinate types pretty print #1636

Merged
merged 6 commits into from
Apr 20, 2024

Conversation

heinezen
Copy link
Member

Depends on #1633

This just flattens the parent hierarchy to make the parent invisible and directly show the coordinate values.

@heinezen heinezen added improvement Enhancement of an existing component lang: python Done in Python code labels Apr 15, 2024
@heinezen heinezen marked this pull request as draft April 17, 2024 12:10
TheJJ
TheJJ previously approved these changes Apr 18, 2024
Copy link
Member

@TheJJ TheJJ left a comment

Choose a reason for hiding this comment

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

nice!

maybe we can split this into multiple files already

@heinezen heinezen dismissed TheJJ’s stale review April 18, 2024 17:51

The merge-base changed after approval.

@heinezen heinezen marked this pull request as ready for review April 19, 2024 01:14
@heinezen
Copy link
Member Author

@TheJJ Wouldn't this require switching away from the decorator method? I would like to keep that for now, since it makes adding new printers pretty easy.

@heinezen heinezen requested a review from TheJJ April 19, 2024 01:17
@TheJJ
Copy link
Member

TheJJ commented Apr 19, 2024

the decorator can be imported like any regular function, no?

@heinezen
Copy link
Member Author

@TheJJ Yes, but to use the decorator, the module with the classes would have to be imported too. And somehow, gdb doesn't seem to like that. At least I get errors when I try that for the .gdbinit file but gdb doesn't print the exact issue. I'm not sure how to solve this yet, so having the printers all in one file is the best solution right now.

TheJJ
TheJJ previously approved these changes Apr 20, 2024
Copy link
Member

@TheJJ TheJJ left a comment

Choose a reason for hiding this comment

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

maybe leave a note in the cpp code to remember to update the pretty printer when changing it :)

@heinezen
Copy link
Member Author

@TheJJ Done :)

TheJJ
TheJJ previously approved these changes Apr 20, 2024
@heinezen heinezen added the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 20, 2024
@SFTbot SFTbot removed the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 20, 2024
@heinezen heinezen added the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 20, 2024
@SFTbot SFTbot removed the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 20, 2024
@heinezen heinezen requested a review from TheJJ April 20, 2024 16:48
@heinezen
Copy link
Member Author

Now it should be good to merge, finally

@TheJJ TheJJ merged commit fd0489e into SFTtech:master Apr 20, 2024
13 checks passed
@heinezen heinezen deleted the feature/pretty_print_coord branch September 7, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Enhancement of an existing component lang: python Done in Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants