DocOtak / gsw-xarray

Wrapper for gsw that will add CF attributes to xarray.DataArray outputs
https://gsw-xarray.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
23 stars 3 forks source link

Use defaultdict with default factory for _check_funcs #52

Closed DocOtak closed 2 years ago

DocOtak commented 2 years ago

It took me way longer than I'd care to admit to remember what that lambda was doing in the _check_func.get call.

This change hopefully makes it a little more clear what is going on.

rcaneill commented 2 years ago

Very clever, I like it very much :D