New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storm Relative Helicity Improvements #577
Conversation
metpy/calc/tests/test_tools.py
Outdated
heights, data = get_layer_heights(heights, 500 * units.m, data, with_agl=True, | ||
interpolation=False, bottom=200 * units.m) | ||
heights_true = np.array([0.2, 0.3, 0.4, 0.5, 0.6, 0.7]) * units.km | ||
data_true = np.array([50, 60 , 70, 80, 90, 100]) * units.degC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E203 whitespace before ','
metpy/calc/tests/test_tools.py
Outdated
heights_true = np.array([0.2, 0.3, 0.4, 0.5, 0.6, 0.7]) * units.km | ||
data_true = np.array([50, 60 , 70, 80, 90, 100]) * units.degC | ||
assert_array_almost_equal(heights_true, heights, 6) | ||
assert_array_almost_equal(data_true, data, 6) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W292 no newline at end of file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor doc cleanup. Also, why remove the original test? Are we still passing what it tested?
*args : array-like | ||
Atmospheric variable(s) measured at the given pressures | ||
bottom : `pint.Quantity`, optional | ||
The bottom of the layer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaults to?
Safe to ignore code climate on this one I believe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodie, an API break in a bug fix release. Good to go I think once you get PEP8 clean.
Multiprocessing issues within flake8? |
See #588. Once that goes green, you can rebase on it. |
Should be good to go pending LGTM |
I know @mwilson14 was planning on a PR wrt this function, heads up that it's changed up some now! |
Closes #576 - There was complication with
get_layer
and some non-ideal testing/methods. This PR cleans up the docs, adds the functionget_layer_height
for height only subsetting (get_layer
requires and interpolates in pressure space only).Testing now uses a triangular hodograph with a simple solution.
We may need to do some refactoring of
get_layer
, but that likely doesn't belong here. Either way I'm sure we can still do some API tuning.