diff --git a/filtering/filtering.py b/filtering/filtering.py index cd4d21c..e3ef023 100644 --- a/filtering/filtering.py +++ b/filtering/filtering.py @@ -801,9 +801,11 @@ def create_dimension(dims, dim, var): file_dim = dims[dim] if file_dim in ds.variables: return ds.variables[file_dim].dimensions[ - 1 - if len(ds.variables[file_dim].dimensions) > 1 and dim == "lon" - else 0 + ( + 1 + if len(ds.variables[file_dim].dimensions) > 1 and dim == "lon" + else 0 + ) ] # get the file containing the dimension data as a DataArray