Skip to content

Commit

Permalink
Fix type of filename in fetch_from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
cwebster2 committed Nov 16, 2020
1 parent df7d46e commit 049d22e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymeteo/uwyo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Getting Data
++++++++++++
* :py:func:`fetch_from_file` -- loads sounding data from a file
* :py:func:`fetch_from_file` -- loads sounding data from a file
* :py:func:`fetch_from_web` -- loads sounding data from website
Preparing Data
Expand Down Expand Up @@ -51,7 +51,7 @@ def fetch_from_file(filename):
title = f.readline()
skiprows = 7
if "Obs" not in title:
title = filenme
title = filename
skiprows = 5

p, z, qv, wind_dir, wind_speed, th = np.genfromtxt(filename, unpack=True, skip_header=skiprows,
Expand Down Expand Up @@ -134,7 +134,7 @@ def fetch_from_web(date, station):

if (data == ""):
raise ValueError("ERROR: No sounding data found in data returned from the server");

p, z, qv, wind_dir, wind_speed, th = np.genfromtxt(io.BytesIO(data.encode()), unpack=True,
skip_header=5,
delimiter=7,
Expand Down

0 comments on commit 049d22e

Please sign in to comment.