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

Image List visible column control #86

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jul 24, 2024

image

Does not compute transformed images if column is hidden.

return a != b


def change_checker(state, key, callback, trigger_check=diff):
Copy link
Collaborator

Choose a reason for hiding this comment

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

is a lambda possible here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, changed to lambda.

return "transformed" not in old and "transformed" in new

change_checker(
self.state, "visible_columns", self.on_apply_transform, tranformed_became_visible
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does trame updates visible_columns if the value is the same?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Another thing is that I would defer from adding newer abstractions that attempts to avoid code repetition when the potential "repeating" code is not repeating yet. Meaning that if this is the only state variable that needs to check that the value has changing before updating it, we might as well handle this in its callback method.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Another thing is that I would defer from adding newer abstractions that attempts to avoid code repetition when the potential "repeating" code is not repeating yet. Meaning that if this is the only state variable that needs to check that the value has changing before updating it, we might as well handle this in its callback method.

🧑‍🎓

Copy link
Collaborator

@vicentebolea vicentebolea left a comment

Choose a reason for hiding this comment

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

Other than the comments it looks great. Good work here :)

@PaulHax PaulHax merged commit 0ac0975 into Kitware:main Jul 31, 2024
5 checks passed
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.

Category Filter only filters object detection model results, not ground truth
2 participants