From a288ff0e785f4cb4ff66d999c2eb9900372a9863 Mon Sep 17 00:00:00 2001 From: l_samenv Date: Wed, 21 Aug 2024 11:34:15 +0200 Subject: [PATCH] Removed old color_mapping.json --- colors.py | 9 --------- graphs/color_mapping.json | 3 --- 2 files changed, 12 deletions(-) delete mode 100644 graphs/color_mapping.json diff --git a/colors.py b/colors.py index aa33781..fdd479d 100644 --- a/colors.py +++ b/colors.py @@ -1,5 +1,3 @@ -import json - def assign_colors_to_curves(blocks): """ Assign a color to each curve contained in the blocks @@ -14,19 +12,12 @@ def assign_colors_to_curves(blocks): updated depending on its availability in the ColorMap, and a new "original_color" value which contains the previous "color" value """ - color_map = json.load(open("./graphs/color_mapping.json", "r")) - # get last value only for block in blocks: color_set = set() auto_curves = [] for curve in block["curves"]: - if curve["name"] in color_map: - curve["original_color"] = "?" - curve["color"] = ColorMap.to_hex(ColorMap.to_code(color_map[curve["name"]])) - continue - col = curve["color"].strip() c = ColorMap.to_code(col) if c < 0: diff --git a/graphs/color_mapping.json b/graphs/color_mapping.json deleted file mode 100644 index 6092f45..0000000 --- a/graphs/color_mapping.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "nicos/se_t_plato":"Yellow" -} \ No newline at end of file