You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
The profile.py code that downloads a sounding does not gracefully handle download failures (for example a 404 because you're requesting a station that does not have soundings):
[1027 bcotton@sheldon ~/devel/SHARPpy ]$ python run_sharppy.py ind http://www.spc.noaa.gov/exper/soundings/LATEST/IND.txt
Traceback (most recent call last):
File "run_sharppy.py", line 343, in
profs = [profile.Profile(url=url)]
File "/home/bcotton/devel/SHARPpy/sharppy/sharptab/profile.py", line 22, in init
for i in range(bgn, end+1):
UnboundLocalError: local variable 'bgn' referenced before assignment
[1028 bcotton@sheldon ~/devel/SHARPpy ]$
The code should probably check the getcode() method to ensure the HTTP request returned 200. If I can motivate myself to learn a bit of python, I'll submit a patch.
The text was updated successfully, but these errors were encountered:
The profile.py code that downloads a sounding does not gracefully handle download failures (for example a 404 because you're requesting a station that does not have soundings):
The code should probably check the getcode() method to ensure the HTTP request returned 200. If I can motivate myself to learn a bit of python, I'll submit a patch.
The text was updated successfully, but these errors were encountered: