Skip to content

Commit

Permalink
Update to new black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g committed Feb 22, 2024
1 parent 52cc90b commit 329f12d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions filtering/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 329f12d

Please sign in to comment.