Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiggi committed Apr 2, 2024
1 parent f7393ff commit 1efc234
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions disdrodb/api/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def available_stations(
# TODO:
# - Filter by station names !
# - Add check_station_names
# - Simplify available_stations

# TODO: ENSURE THAT NO DUPLICATED STATION NAMES ?
list_stations = [info[2] for info in list_info]
Expand Down
2 changes: 0 additions & 2 deletions disdrodb/metadata/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ def _get_list_metadata_with_data(base_dir, data_sources=None, campaign_names=Non

# Get metadata filepaths
if isinstance(station_names, list):

metadata_filepaths = [
define_metadata_filepath(
product="Raw",
Expand All @@ -228,7 +227,6 @@ def _get_list_metadata_with_data(base_dir, data_sources=None, campaign_names=Non
check_exists=False,
)
for data_source, campaign_name, station_name in list_info
if station_name in station_names
]

# If no stations available, raise an error
Expand Down

0 comments on commit 1efc234

Please sign in to comment.