Skip to content

Commit

Permalink
Remove obsolete 'legend' entry in contour files
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Jan 17, 2025
1 parent 827d46d commit 40453e8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pyaerocom/aeroval/modelmaps_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 40453e8

Please sign in to comment.