COSIMA / cosima-cookbook

Framework for indexing and querying ocean-sea ice model output.
https://cosima-recipes.readthedocs.io/en/latest/
Apache License 2.0
57 stars 27 forks source link

Bug in error message #317

Closed AndyHoggANU closed 1 year ago

AndyHoggANU commented 1 year ago

When I make an error in loading data, I often get information like this:

QueryWarning: Your query returns variables from files with different cell_methods: {'z_l:sum yq:point xh:sum time: mean', 'rho2_l:sum yq:point xh:sum time: mean'}. This could lead to unexpected behaviour! Disambiguate by passing attrs={'cell_methods'=''} to getvar, specifying the desired attribute value.

This is confusing, but I can usually figure it out. BUT, note that {'cell_methods'=''} should actually read {'cell_methods':''}.

@aidanheerdegen - do you agree this is a bug? Worth fixing?