Skip to content

Commit

Permalink
Merge pull request #2029 from dopplershift/cleanup
Browse files Browse the repository at this point in the history
Misc cleanups
  • Loading branch information
dcamron authored Aug 19, 2021
2 parents 9c2b417 + a5e8cb4 commit 4ad37b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3323,7 +3323,7 @@ def k_index(pressure, temperature, dewpoint):
)
@check_units('[length]', '[temperature]', '[speed]', '[speed]')
def gradient_richardson_number(height, potential_temperature, u, v, vertical_dim=0):
r"""Calculate the gradient (or flux) Richardson number.
r"""Calculate the gradient Richardson number.
.. math:: Ri = \frac{g}{\theta} \frac{\left(\partial \theta/\partial z\right)}
{\left(\partial u / \partial z\right)^2 + \left(\partial v / \partial z\right)^2}
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/io/_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Enum:
def __init__(self, *args, **kwargs):
"""Initialize the mapping."""
# Assign values for args in order starting at 0
self.val_map = {ind: a for ind, a in enumerate(args)}
self.val_map = dict(enumerate(args))

# Invert the kwargs dict so that we can map from value to name
self.val_map.update(zip(kwargs.values(), kwargs.keys()))
Expand Down

0 comments on commit 4ad37b6

Please sign in to comment.