-
Notifications
You must be signed in to change notification settings - Fork 416
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
fix mixing lines keyword args bug #2326
Conversation
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.
Good catch and thanks for contributing a fix! I have a minor suggestion on implementation. Also, would you be willing to add a test in tests/plots/test_skewt.py
so that we don't accidentally break this in the future?
I agree, this is better. Co-authored-by: Ryan May <rmay31@gmail.com>
right... whoops thanks Co-authored-by: Ryan May <rmay31@gmail.com>
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.
Sorry this languished so long. Looks like the last missing piece was adding the reference image for the test (which I copied from the identical image from the other test).
Assuming the tests pass, this is ready to go! Thanks again for putting in the fix.
Congratulations on your first merge PR to MetPy! 🎉 We hope we see you around more in the future! |
Description Of Changes
Hello! Im an atmospheric science grad student at UBC. I found + squished a bug in the skewt mixing lines function -- if you specify both
pressure
andmixing_ratio
as not the defualts it raises an error. solution is to transpose the inputmixing_ratio
array as with the defualt.Critiques/comments welcome, this is my first edit/pr to a code base that isnt mine...
Checklist