Commit 036b1e1
authored
Improve GeoOptMetricsTable and remove duplicate scatter plot controls (#317)
* Improve GeoOptMetricsTable and remove duplicate scatter plot controls
- Add unit (Å) to RMSD and display units in thin font in column headers
- Add (higher/lower=better) hints to column tooltips
- Group columns under Symmetry and Hyperparams headers
- Add initial sort by RMSD ascending, sort_hint, and default_num_format
- Add n_layers and graph_construction_radius as hidden-by-default columns
- Fix z-index of ToggleMenu dropdown above sticky table headers
- Remove duplicate fullscreen buttons and settings panes from
DynamicScatter and GitHubActivityScatter (use ScatterPlot built-ins)
- Move DynamicScatter controls into controls_extra snippet
- Bump pre-commit hooks and site dependencies
- Use rsplit/maxsplit=1 for safer string splits in Python
- Add tests for units, group headers, hidden columns, and tooltips
* Add RMSD unit and improve GeoOptMetricsTable tests
- Add missing unit: 'Å' to ALL_METRICS.RMSD label definition
- Test units in column headers (RMSD, f_max), group headers
(Symmetry, Hyperparams), hidden-by-default columns, and
initial sort via aria-sort attribute
- Test n_layers presence in assemble_row_data output
- Consolidate 3 redundant structure tests into 1
* Update DynamicScatter tests for refactored controls
Custom fullscreen button and DraggablePane were replaced with
ScatterPlot's built-in FullscreenToggle and controls_extra snippet.
Tests now verify component mounting and structure without depending
on removed DOM elements (.settings-toggle, button[title$="fullscreen"]).
* Simplify DynamicScatter and fix GeoOptMetricsTable column handling
- Remove dead size_value date re-conversion (get_label_value already handles it)
- Use isFinite() instead of !isNaN() to also reject Infinity values
- Consolidate axis_options/color_options into single prop_options derived
- Inline date_key/params_key constants (each used only once)
- Remove intermediate color_prop derived (inline into axes)
- Use const for grid/tick settings (PlotControls manages the UI)
- Fix enrich_col override order so enrichments aren't silently discarded
- Use ALL_METRICS.RMSD.key for initial_sort instead of hardcoded string
- Use .key instead of .label for cell_filter in assemble_row_data
- Drop dead ?? col.label fallback in key_remap
- Merge RMSD unit test into test.each, merge overlapping mount tests
* fix lints1 parent 93cc690 commit 036b1e1
File tree
31 files changed
+385
-693
lines changed- .github/workflows
- data/mp
- matbench_discovery
- remote
- models
- chgnet
- deepmd
- equflash
- orb
- pet
- scripts/evals
- site
- src/lib
- tests
- lib
- routes
- tests/metrics/diatomics
31 files changed
+385
-693
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments