From 40bcc498a2bfec5c2281a8901bddb833a47416db Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Thu, 7 Nov 2024 17:10:34 -0500 Subject: [PATCH] fix: trial use should be two words in `MATURITY_MAPPING` --- src/ga4gh/gks/metaschema/scripts/y2t.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ga4gh/gks/metaschema/scripts/y2t.py b/src/ga4gh/gks/metaschema/scripts/y2t.py index 3d60c4c..94aba24 100755 --- a/src/ga4gh/gks/metaschema/scripts/y2t.py +++ b/src/ga4gh/gks/metaschema/scripts/y2t.py @@ -17,7 +17,7 @@ # Mapping to corresponding hex color code and code for maturity status MATURITY_MAPPING: dict[str, tuple[str, str]] = { "draft": ("D3D3D3", "D"), - "trial_use": ("FFFF99", "TU"), + "trial use": ("FFFF99", "TU"), "normative": ("B6D7A8", "N"), "deprecated": ("EA9999", "X"), } @@ -136,7 +136,7 @@ def resolve_flags(class_property_attributes: dict) -> str: if maturity is not None: background_color, maturity_code = MATURITY_MAPPING.get(maturity, (None, None)) if background_color and maturity_code: - title = f"{maturity.replace("_", " ").title()} Maturity Level" + title = f"{maturity.title()} Maturity Level" flags += f""" .. raw:: html