Skip to content

Commit

Permalink
Merge pull request #32 from ga4gh/fix-trial-use
Browse files Browse the repository at this point in the history
fix: trial use should be two words in `MATURITY_MAPPING`
  • Loading branch information
larrybabb authored Nov 7, 2024
2 parents a7c3890 + 40bcc49 commit 2c0d97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ga4gh/gks/metaschema/scripts/y2t.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2c0d97a

Please sign in to comment.