Feedback for colored AMWG HTML tables #144
Replies: 6 comments 2 replies
-
This is already very cool, thanks, @justin-richling !! The one thing that immediately occurs to me is that it might be better to color based on a test/threshold rather than by the binary winner/loser. For example, we might want to have N cases, and want all cases that are "acceptable" to be green and cases that "fail" to be red. Also, we are often comparing simulations for development where the values might differ but not actually be statistically significantly different compared to the reference value. In both these cases, maybe a statistical test for |
Beta Was this translation helpful? Give feedback.
-
This is cool. Thanks @justin-richling |
Beta Was this translation helpful? Give feedback.
-
Thanks Justin! The style is a dramatic improvement over what we have in there already. I say we can start with this and worry about tweaking it a bit later (others can also start tweaking color and hue as are suggested above: both good ideas). One note: do we have the 'short' case names available in the ADF? (e.g. 'case1' 'case2' in Justin's table). If not, we should make sure we add those: we will need them for titles and the table headers. E.g., we need to be able to have 'Kzz3' and not 'f.e21.FWscHIST.ne30_L48_BL10_cam6_3_041_kzz3_zmtop75.hf.001' |
Beta Was this translation helpful? Give feedback.
-
I am suggesting we should use nicknames throughout the ADF (especially given those full case names....) |
Beta Was this translation helpful? Give feedback.
-
@justin-richling: I like this a lot already. I fully agree with all suggestions above. All great ideas. |
Beta Was this translation helpful? Give feedback.
-
These are all great suggestions, thanks! I will keep it simple and work towards getting an Issue and PR going on the GitHub. Keep the ideas coming! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With the suggestion from @swrneale about possibly adding color to highlight our HTML tables, I have made progress on styling the pandas data frames that generate our HTML files. This all works on the backend with python and not in editing the HTML files after.
My initial test was for a hypothetical case vs case vs obs and highlight values of either case that were closest to the obs in green and the furthest in red. I have a Jupyter notebook that can provide a quick testing ground of it and sample output HTML files here:
/glade/work/richling/ADF/ADF_dev/notebooks/
Obviously this is not production ready yet as the ADF does not account for a three way comparison. However, the styling can be implemented for other situations like testing both case and baseline against a preferred threshold or ideal value, etc. Rich provided some examples here and here that may be useful.
I have an example here of a basic variable column highlight that has been integrated into a run of the ADF.
I wanted to open a discussion for potential styling needs that I can test.
Beta Was this translation helpful? Give feedback.
All reactions