Skip to content

Commit

Permalink
coops: Differentiate between empty region and no region input
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Jul 10, 2023
1 parent b0b1cb4 commit 9361a10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions searvey/coops.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,8 @@ def coops_stations_within_region(
"""

stations = coops_stations(station_status=station_status)
if region:
if region is not None:
return stations[stations.within(region)]
else:
return stations


def coops_stations_within_bounds(
Expand Down

0 comments on commit 9361a10

Please # to comment.