Skip to content

Commit b9c7690

Browse files
committed
BUG: Export parse_wpc_surface_bulletin
The code to export and set __all__ was missing. The function was still available from the * import, but it wasn't showing up properly in the docs.
1 parent 6467254 commit b9c7690

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/metpy/io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
__all__.extend(metar.__all__) # pylint: disable=undefined-variable
2626
__all__.extend(nexrad.__all__) # pylint: disable=undefined-variable
2727
__all__.extend(station_data.__all__) # pylint: disable=undefined-variable
28+
__all__.extend(text.__all__) # pylint: disable=undefined-variable
2829

2930
set_module(globals())

src/metpy/io/text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import pandas as pd
1313

1414
from ._tools import open_as_needed
15+
from ..package_tools import Exporter
16+
17+
exporter = Exporter(globals())
1518

1619

1720
def _decode_coords(coordinates):
@@ -64,6 +67,7 @@ def _regroup_lines(iterable):
6467
yield parts
6568

6669

70+
@exporter.export
6771
def parse_wpc_surface_bulletin(bulletin, year=None):
6872
"""Parse a coded surface bulletin from NWS WPC into a Pandas DataFrame.
6973

0 commit comments

Comments
 (0)