From 40453e8054b7dc01e8c9a173cbb1568db3523d92 Mon Sep 17 00:00:00 2001 From: thorbjoernl <51087536+thorbjoernl@users.noreply.github.com> Date: Fri, 17 Jan 2025 09:04:16 +0100 Subject: [PATCH] Remove obsolete 'legend' entry in contour files --- pyaerocom/aeroval/modelmaps_helpers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pyaerocom/aeroval/modelmaps_helpers.py b/pyaerocom/aeroval/modelmaps_helpers.py index 1dd8b4f40..65591d718 100644 --- a/pyaerocom/aeroval/modelmaps_helpers.py +++ b/pyaerocom/aeroval/modelmaps_helpers.py @@ -103,7 +103,6 @@ def calc_contour_json(data: GriddedData, cmap: str, cmap_bins: list[float]): dictionary containing contour data """ - assert isinstance(data, GriddedData) cm = ListedColormap(color_palette(cmap, len(cmap_bins) - 1)) try: @@ -141,13 +140,6 @@ def calc_contour_json(data: GriddedData, cmap: str, cmap_bins: list[float]): ) geojsons[str(date)] = geojson - geojsons["legend"] = { - "colors": colors_hex, - "levels": list(cmap_bins), - "var_name": data.var_name, - "units": str(data.units), - } - return geojsons