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
19 stars 2 forks source link

Fix small bug I introduced on accident regarding units #367

Closed nicolejkeeney closed 2 months ago

nicolejkeeney commented 2 months ago

Description of PR

Howdy, I accidentally introduced a small bug in my last PR. Basically, that PR accidentally made it so for variables with only a single unit option, an error was raised when you tried to retrieve the data. YIKES! Obviously not good behavior. I fixed that in this PR. To review, perhaps just review the code, or maybe try to retrieve a variable with only one unit option to make sure it all looks good.

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist: