Skip to content
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 crash with mixed-layer LFC calculation #961

Closed
wants to merge 52 commits into from

Conversation

sgdecker
Copy link
Contributor

Addresses #945 although this is a work in progress. A test breaks, but I need to check if the test is correct or if it needs to be changed to match the output this PR generates.

This commit fixes a crash when computing the LFC of a mixed-layer
parcel and adds a corresponding test for this situation. A different
test breaks with this change since the LCL is computed based on the
parcel profile rather than the actual temperature, which I think is
correct, but need to verify further.
@dopplershift dopplershift added this to the 0.10 milestone Nov 8, 2018
@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Calc Pertains to calculations labels Nov 8, 2018
@dopplershift dopplershift modified the milestones: 0.10, 0.11 Dec 14, 2018
dopplershift and others added 22 commits March 22, 2019 16:17
The warning was blaming Pint, but it was actually coming from this code.
flake8 is picking up this file now, might as well make it compliant.
Can't use raw strings since we need \n and \r, so need to use \\ for the
regular expression groups.
Matplotlib 3.0.1 has been released.
Add support for drawing SkewT on an axes at an arbitrary location.
Scipy 1.2 fixed a bug in 2D cubic interpolation, so we need to adjust
the values in the sample files. We can avoid shipping mulitple versions
of the static data by skipping the tests on older Scipy versions.
Raul Mendez and others added 23 commits March 22, 2019 16:17
This commit adds the .loc indexer and .sel method to both the DataArray
and Dataset metpy accessors to allow for unit-aware indexing/selection.
For DataArrays (for which axis types are uniquely determined), this also
allows selection via the axis name ('time', 'vertical', etc.) instead of
the coordinate name.

Also, adds this new unit-aware selection to the xarray tutorial.
Previously, any existing axis attribute was removed to enforce
uniqueness of any given axis, but this modified the user's data. Now,
the axis is tracked in _metpy_axis to avoid collisions.
As discussed in Unidata#949, the error message from the cross
section function could be made clearer in the case where coordinate
information is missing. This catches the AttributeError that was raised
and instead raises a more informative error. The docstrings have also
been updated.
Adds a declarative interface for creating plots, similar in nature to
GEMPAK.
Seems a bit clearer.
This has completely busted us.
@sgdecker
Copy link
Contributor Author

I finally came back to this, found an error in my fix, and have fixed it. All tests are passing as far as I can tell, and #945 seems to be fixed.

@sgdecker
Copy link
Contributor Author

This PR has a bug. Will fix momentarily.

@dopplershift
Copy link
Member

Closing in favor of #1022 . (If this is a mistake, feel free to re-open.)

@dopplershift dopplershift removed this from the 0.11 milestone Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Type: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants