Skip to content

Commit

Permalink
Merge pull request #3451 from dopplershift/tweak-metar-doc
Browse files Browse the repository at this point in the history
Note text-mode needed for METAR file-like objects
  • Loading branch information
dcamron committed Mar 22, 2024
2 parents 3e0481f + 6976bf0 commit 6b4c6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metpy/io/metar.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def parse_metar_file(filename, *, year=None, month=None):
----------
filename : str or file-like object
If str, the name of the file to be opened. If `filename` is a file-like object,
this will be read from directly.
this will be read from directly and needs to be opened in text mode (i.e. ``read()``
needs to return a string, not bytes).
year : int, optional
Year in which observation was taken, defaults to current year. Keyword-only argument.
month : int, optional
Expand Down

0 comments on commit 6b4c6ec

Please sign in to comment.