cal-adapt / climakitae

A Python toolkit for retrieving, visualizing, and performing scientific analyses with data from the Cal-Adapt Analytics Engine.
https://climakitae.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 2 forks source link

ck.view fails when using cmap parameter and station data #294

Closed elehmer closed 10 months ago

elehmer commented 1 year ago

I just noticed that ck.view(data_to_use, lat_lon = False, cmap = "viridis") fails for station data:

ValueError: failed to validate Line(id='2062', ...).line_color: expected either None or a value of type Color, got 'viridis'

vicford commented 10 months ago

This is a notebook guidance issue not climakitae code issue. Station data doesn't have xy coordinates so passing a variable cmap to it breaks this. Will modify the notebook slightly.