From 66849241d47311c0e1014afcd0dde407abfafefc Mon Sep 17 00:00:00 2001 From: akrherz Date: Mon, 20 Jun 2022 13:08:48 -0500 Subject: [PATCH] stop backcomputing affected WFOs for VTEC closes #615 --- CHANGELOG.md | 2 ++ src/pyiem/nws/products/_vtec_jabber.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daed91acc..a50e3299c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,8 @@ segments with the same vtec action (read tropical products). - Improved logic behind `pyiem.plot.util.pretty_bins`, it no longer exactly returns the specified number of bins, but tries to do the right thing! - Increase remark trimming for LSR tweets for more length safety. +- Stopped back-computing affected WFOs based on the UGCs found in a VTEC +product. This was causing more confusion than good (#615). ## **1.12.0** (18 Mar 2022) diff --git a/src/pyiem/nws/products/_vtec_jabber.py b/src/pyiem/nws/products/_vtec_jabber.py index a461e277b..5342c5c57 100644 --- a/src/pyiem/nws/products/_vtec_jabber.py +++ b/src/pyiem/nws/products/_vtec_jabber.py @@ -14,10 +14,11 @@ def build_channels(prod, segment, vtec) -> list: """Build a list of channels for the given segment/vtec.""" channels = [] + # Two noisey products that don't default to the main WFO channel if prod.afos[:3] in ["MWW", "RFW"]: - channels = [f"{prod.afos[:3]}{s}" for s in prod.get_affected_wfos()] + channels.append(f"{prod.afos[:3]}{prod.source[1:]}") else: - channels = prod.get_affected_wfos() + channels.append(prod.source[1:]) # GH604 - Append a -ACTION for CON, EXP, CAN actions suffix = f"-{vtec.action}" if vtec.action in ["CON", "EXP", "CAN"] else "" channels.append(f"{vtec.s2()}{suffix}")