BCDA-APS / mdaviz

Data visualization for mda
https://bcda-aps.github.io/mdaviz/
Other
3 stars 0 forks source link

BUG: .get(label) should default to empty dict #106

Closed prjemian closed 4 months ago

prjemian commented 6 months ago

This code can generate AttributeError: 'NoneType' object has no attribute 'get': https://github.com/BCDA-APS/mdaviz/blob/6de0662f8bda6a3a04c7c564f14df098cc8c29ba/mdaviz/chartview.py#L188-L189

In both of these cases, the call to .get() should have an empty {} as the (default) second argument.

rodolakis commented 6 months ago

Done: 1b7bc351085257e65ea7a91d4026fd210e003bfd