Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
grond
Commits
a3362bf6
Commit
a3362bf6
authored
Jun 08, 2016
by
Sebastian Heimann
Browse files
black/white-listing: can now select raw and processed channel codes
parent
6791ba73
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
a3362bf6
...
...
@@ -727,8 +727,15 @@ class DatasetConfig(HasPaths):
apply_correction_factors
=
Bool
.
T
(
default
=
True
)
apply_correction_delays
=
Bool
.
T
(
default
=
True
)
picks_paths
=
List
.
T
(
Path
.
T
())
blacklist
=
List
.
T
(
String
.
T
())
whitelist
=
List
.
T
(
String
.
T
(),
optional
=
True
)
blacklist
=
List
.
T
(
String
.
T
(),
help
=
'stations/components to be excluded according to their STA, '
'NET.STA, NET.STA.LOC, or NET.STA.LOC.CHA codes.'
)
whitelist
=
List
.
T
(
String
.
T
(),
optional
=
True
,
help
=
'if not None, list of stations/components to included according '
'to their STA, NET.STA, NET.STA.LOC, or NET.STA.LOC.CHA codes. '
'Note: ''when whitelisting on channel level, both, the raw and '
'the processed channel codes have to be listed.'
)
synthetic_test
=
SyntheticTest
.
T
(
optional
=
True
)
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
src/dataset.py
View file @
a3362bf6
...
...
@@ -400,6 +400,14 @@ class Dataset(object):
nslc
=
station
.
nsl
()
+
(
channel
,)
if
self
.
is_blacklisted
(
nslc
):
raise
NotFound
(
'waveform is blacklisted'
,
nslc
)
if
not
self
.
is_whitelisted
(
nslc
):
raise
NotFound
(
'waveform is not on whitelist'
,
nslc
)
if
tmin
is
not
None
:
tmin
=
float
(
tmin
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment