Wires reporting.py's stats into two new pages: a summary panel (data completeness, GMI, %CV, 5-band time-in-range vs. consensus targets) and the standard AGP percentile chart (5th-95th and 25th-75th bands plus median, aggregated by time-of-day across the selected period). Co-Authored-By: Claude Sonnet 5 <[email protected]>
10 lines
256 B
Python
10 lines
256 B
Python
from ui_common import hex_to_rgba
|
|
|
|
|
|
def test_hex_to_rgba_converts_correctly():
|
|
assert hex_to_rgba("#2a78d6", 0.3) == "rgba(42,120,214,0.3)"
|
|
|
|
|
|
def test_hex_to_rgba_handles_hash_optional():
|
|
assert hex_to_rgba("2a78d6", 0.3) == "rgba(42,120,214,0.3)"
|