Skip to content

Commit

Permalink
duplicate name for colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nocollier committed Jul 23, 2024
1 parent cadd476 commit b37a8bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ILAMB/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from ILAMB import ilamblib as il
from ILAMB.ModelResult import ModelResult
from matplotlib import colors as mplclrs

logger = logging.getLogger("%i" % MPI.COMM_WORLD.rank)
rank = 0
Expand Down Expand Up @@ -187,7 +188,7 @@ def _parse_model_yaml(filename: str, cache_path: str = "./", only_models: list =

for model in models:
if isinstance(model.color, str) and model.color.startswith("#"):
model.color = clr.hex2color(model.color)
model.color = mplclrs.hex2color(model.color)
return models

def ParseModelSetup(
Expand Down

0 comments on commit b37a8bb

Please sign in to comment.