Skip to content

Commit

Permalink
MNT: Fix doctest for numpy 1.25
Browse files Browse the repository at this point in the history
Comparing arrays of different sizes for equality now produces a
broadcasting error, which makes sense. Just remove the offending lines
since they're not adding much.
  • Loading branch information
dopplershift committed Jul 17, 2023
1 parent 941bfb3 commit 6008f19
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,15 +1049,9 @@ def parcel_profile_with_lcl(pressure, temperature, dewpoint):
... .56, .88, .39, .67, .15, .04, .94, .35] * units.dimensionless
>>> # calculate dewpoint
>>> Td = dewpoint_from_relative_humidity(T, rh)
>>> # computer parcel temperature
>>> # compute parcel temperature
>>> Td = dewpoint_from_relative_humidity(T, rh)
>>> p_wLCL, T_wLCL, Td_wLCL, prof_wLCL = parcel_profile_with_lcl(p, T, Td)
>>> print(f'Shape of original pressure array: {p.shape}')
Shape of original pressure array: (30,)
>>> print(f'Shape of pressure array from function: {p_wLCL.shape}')
Shape of pressure array from function: (31,)
>>> print(p == p_wLCL)
False
See Also
--------
Expand Down

0 comments on commit 6008f19

Please sign in to comment.