Skip to content

Conversation

@alexhroom
Copy link
Collaborator

@alexhroom alexhroom commented Dec 19, 2024

This PR fixes #83 by adding the display_fields property to a RATModel, which allows flexibility in what fields are displayed when the model is given as a table, both in the model and in a ClassList. In a ClassList, it will display all fields that are in the display_fields of at least one item in the list data.

It also adds a way to set show_priors for all parameters in a Project; a dynamic bool function set_prior_visibility and two convenience functions show_priors() and hide_priors().

Once #100 is merged, this will also allow the table display to hide unused background values (e.g. if all backgrounds are constant, the unused value fields won't be displayed)

@alexhroom alexhroom marked this pull request as ready for review December 20, 2024 06:14
@alexhroom alexhroom changed the title Adds flexibility to what fields are displayed from a Model Adds flexibility to what fields are displayed from a model Dec 20, 2024
@alexhroom alexhroom requested a review from DrPaulSharp January 15, 2025 13:15
Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

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

All looks good here, should be really useful for presenting projects.

@alexhroom alexhroom merged commit 9905295 into RascalSoftware:main Jan 15, 2025
7 checks passed
@alexhroom alexhroom deleted the 83-show-priors branch January 15, 2025 14:30
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.

Implement the show Priors functionality for the Project class

2 participants