Skip to content

Conversation

@dopplershift
Copy link
Member

Description Of Changes

The scipy solver doesn't raise an error, but has some return codes that indicate success or failure. Use these to raise an appropriate error in that case. This avoids confusing behavior in downstream calculations, like parcel_profile.

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Calc Pertains to calculations labels Apr 28, 2023
@dopplershift dopplershift added this to the 1.5.0 milestone Apr 28, 2023
@dopplershift dopplershift requested a review from a team as a code owner April 28, 2023 21:35
@dopplershift dopplershift requested review from dcamron and removed request for a team April 28, 2023 21:35
@dopplershift dopplershift changed the title BUG: Raise error in moist_lapse on solver fail (Fixes #3004) BUG: Raise error in moist_lapse on solver fail Apr 28, 2023
@dopplershift dopplershift force-pushed the fix-3004 branch 2 times, most recently from 2f7370c to 70e64f0 Compare May 4, 2023 22:56
The scipy solver doesn't raise an error, but has some return codes that
indicate success or failure. Use these to raise an appropriate error in
that case. This avoids confusing behavior in downstream calculations,
like parcel_profile.
@dcamron dcamron enabled auto-merge May 4, 2023 23:22
@dcamron dcamron merged commit ad7f63f into Unidata:main May 4, 2023
@dopplershift dopplershift deleted the fix-3004 branch May 4, 2023 23:43
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.

IndexError from parcel_profile for low pressures

2 participants