[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[python #MPQ-167169]: Typos in the code of Natural Neighbor Verification
- Subject: [python #MPQ-167169]: Typos in the code of Natural Neighbor Verification
- Date: Tue, 25 Oct 2022 17:23:30 -0600
Greetings!
Thanks for the report. It appears this was inadvertently broken awhile ago.
Based on the commit that broke the example, I think the proper fix is actually
to correct all of cc:
cc = np.array([circumcenters[m] for m in members[0]])
Though I suspect this is equivalent to your suggestion. Regardless, thanks
again, and you can follow the progress of the fix being merged in this pull
request:
https://github.com/Unidata/MetPy/pull/2761
Cheers!
Ryan
> Hi,
>
> I am currently testing the code in this section
> https://unidata.github.io/MetPy/latest/examples/gridding/Natural_Neighbor_Verification.html
> I think there are some typos in the code that cause confusion in the 3rd
> figure,
> The typos are:
> cc[0] -> should change to cc[9]
> cc[1] -> should change to cc[11]
>
> I think it may be helpful for others
Ticket Details
===================
Ticket ID: MPQ-167169
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.