From 913054a0a72ff8885a79b8f58db617b72453e74e Mon Sep 17 00:00:00 2001 From: Yiyu Ni Date: Sat, 9 Sep 2023 16:39:12 -0700 Subject: [PATCH] allow all station filter --- src/noisepy/seis/scedc_s3store.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/noisepy/seis/scedc_s3store.py b/src/noisepy/seis/scedc_s3store.py index 257fa907..cda18e53 100644 --- a/src/noisepy/seis/scedc_s3store.py +++ b/src/noisepy/seis/scedc_s3store.py @@ -26,7 +26,10 @@ def channel_filter(stations: List[str], ch_prefixes: str) -> Callable[[Channel], sta_set = set(stations) def filter(ch: Channel) -> bool: - return ch.station.name in sta_set and ch.type.name.lower().startswith(tuple(ch_prefixes.lower().split(","))) + if sta_set == {"*"}: + return ch.type.name.lower().startswith(tuple(ch_prefixes.lower().split(","))) + else: + return ch.station.name in sta_set and ch.type.name.lower().startswith(tuple(ch_prefixes.lower().split(","))) return filter