Skip to content

Commit

Permalink
Fixed flake8 complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
lpilz committed Jan 31, 2022
1 parent ce75e1a commit 1046fa2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/metpy/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,15 @@ def quantify(self):
by this operation. Do not utilize on moderate- to large-sized remote datasets before
subsetting!
"""
return self._dataset.map(lambda da: da.metpy.quantify()).assign_attrs(self._dataset.attrs)
return self._dataset.map(lambda da: da.metpy.quantify()).assign_attrs(
self._dataset.attrs
)

def dequantify(self):
"""Return new dataset with variables cast to magnitude and units on attribute."""
return self._dataset.map(lambda da: da.metpy.dequantify()).assign_attrs(self._dataset.attrs)
return self._dataset.map(lambda da: da.metpy.dequantify()).assign_attrs(
self._dataset.attrs
)


def _assign_axis(attributes, axis):
Expand Down

0 comments on commit 1046fa2

Please sign in to comment.