Skip to content

Commit

Permalink
Merge pull request #974 from akrherz/diet
Browse files Browse the repository at this point in the history
♻️ Trim back autoplot sizes
  • Loading branch information
akrherz authored Nov 16, 2024
2 parents 0267aa3 + eb5bef6 commit 4aa43c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pyiem/nws/products/cwa.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def get_jabbers(self, _uri, _uri2=None):
apurl = (
"https://mesonet.agron.iastate.edu/plotting/auto/plot/226/"
f"network:CWSU::cwsu:{data.center}::num:{data.num}::"
f"issue:{data.issue:%Y-%m-%d%%20%H%M}::_r:t.png"
f"issue:{data.issue:%Y-%m-%d%%20%H%M}::_r:86.png"
)
texturl = (
"https://mesonet.agron.iastate.edu/"
Expand Down
2 changes: 1 addition & 1 deletion src/pyiem/nws/products/ero.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def jabber_messages(valid, outlook_collections) -> list:
twmedia = (
"https://mesonet.agron.iastate.edu/plotting/auto/plot/220/"
"cat:categorical::which:%(day)s%(cat)s::t:%(t220)s::network:WFO::"
"wfo:%(wfo)s::"
"wfo:%(wfo)s::_r:86::"
f"csector:conus::valid:{valid.strftime('%Y-%m-%d %H%M')}"
".png"
).replace(" ", "%%20")
Expand Down
2 changes: 1 addition & 1 deletion src/pyiem/nws/products/spcpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def get_jabbers(self, uri, _uri2=None):
twmedia = (
"https://mesonet.agron.iastate.edu/plotting/auto/plot/220/"
"cat:categorical::which:%(day)s%(cat)s::t:%(t220)s::network:WFO::"
"wfo:%(wfo)s::"
"wfo:%(wfo)s::_r:86::"
f"csector:conus::valid:{self.valid.strftime('%Y-%m-%d %H%M')}"
".png"
).replace(" ", "%%20")
Expand Down
4 changes: 2 additions & 2 deletions tests/nws/products/test_spcpts.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def test_170417_empty(dbcursor):
assert jabber[-1][0] == ans
ans = (
"https://mesonet.agron.iastate.edu/plotting/auto/plot/220/"
"cat:categorical::which:0C::t:conus::network:WFO::wfo:DMX::"
"cat:categorical::which:0C::t:conus::network:WFO::wfo:DMX::_r:86::"
"csector:conus::valid:2008-12-25%200941.png"
)
assert jabber[-1][2]["twitter_media"] == ans
Expand Down Expand Up @@ -655,7 +655,7 @@ def test_bug_140506_day2():
assert j[-1][0] == ans
ans = (
"https://mesonet.agron.iastate.edu/plotting/auto/plot/220/"
"cat:categorical::which:2C::t:conus::network:WFO::wfo:TSA::"
"cat:categorical::which:2C::t:conus::network:WFO::wfo:TSA::_r:86::"
"csector:conus::valid:2014-05-06%201731.png"
)
assert j[-1][2]["twitter_media"] == ans
Expand Down

0 comments on commit 4aa43c7

Please sign in to comment.