When adding a station comparison to kw.plot_overschrijding(), we get KeyError: 'station':
# get and compare station attributes
station_attrs = [v.attrs["station"] for k,v in dist.items()]
assert all(x == station_attrs[0] for x in station_attrs)
station = station_attrs[0]
This happens because weibul looses attributes and Hydra does not have attributes also. The code [print(k, v.attrs) for k,v in dist_exc.items()] prints:
When adding a station comparison to
kw.plot_overschrijding()
, we getKeyError: 'station'
:This happens because weibul looses attributes and Hydra does not have attributes also. The code
[print(k, v.attrs) for k,v in dist_exc.items()]
prints: