diff --git a/disdrodb/api/io.py b/disdrodb/api/io.py index dd2e22cc..b0faa2e2 100644 --- a/disdrodb/api/io.py +++ b/disdrodb/api/io.py @@ -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] diff --git a/disdrodb/metadata/search.py b/disdrodb/metadata/search.py index f6d3c960..d426f9ca 100644 --- a/disdrodb/metadata/search.py +++ b/disdrodb/metadata/search.py @@ -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", @@ -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