Skip to content

Select and hide models#191

Closed
joehart2001 wants to merge 5 commits intomainfrom
model-selection
Closed

Select and hide models#191
joehart2001 wants to merge 5 commits intomainfrom
model-selection

Conversation

@joehart2001
Copy link
Collaborator

Pre-review checklist for PR author

PR author must check the checkboxes below when creating the PR.

Summary

Add ability to select which models are shown in the results tables

Linked issue

Resolves #190

Testing

mace models

@ElliottKasoar
Copy link
Collaborator

This has a huge number of conflicts with the level of theory changes, which need to be resolved

summary_data: list[dict] | None,
) -> tuple[list[dict], list[dict], list[dict]]:
"""
Update summary table when scores/weights change, and sync on tab change.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth updating this too. If it's too long, you can do an extended description e.g.

Summary description.

Extended description.

Parameters
-----------
...

full_rows, _ = update_score_style(summary_rows, stored_weights)
filtered_rows = filter_rows_by_models(full_rows, selected_models)
if filtered_rows:
filtered_scores = calc_metric_scores(filtered_rows)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why would filter_rows_by_models not filter the scores too? Why do we need to recalculate them here and every other time filter_rows_by_models is called?

Also more generally, this pattern seems to repeat quite a big. Things like the get_table_style could maybe deal with filtered_rows being empty, which would save this if...else being repeated each time?

@ElliottKasoar ElliottKasoar added the enhancement New feature or request label Jan 27, 2026
@joehart2001 joehart2001 mentioned this pull request Feb 18, 2026
1 task
@ElliottKasoar
Copy link
Collaborator

Superseded by #378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Be able to select which models are shown

2 participants