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
Peter Niemz
lassie
Commits
36b2bebc
Commit
36b2bebc
authored
Dec 09, 2016
by
Daniela Kühn
Browse files
Throwing out default 'stackmax' path:wq
parent
f49c2e42
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/config.py
View file @
36b2bebc
...
...
@@ -42,7 +42,7 @@ class Config(Object):
stackmax_path
=
String
.
T
(
optional
=
True
,
help
=
'output
file
name for stack
function
s'
)
help
=
'output
path
name for stack
ed trace
s'
)
grid
=
grid
.
Grid
.
T
(
optional
=
True
,
...
...
src/core.py
View file @
36b2bebc
...
...
@@ -59,10 +59,6 @@ def scan(
if
op
.
exists
(
config
.
stackmax_path
):
shutil
.
rmtree
(
config
.
stackmax_path
)
os
.
mkdir
(
config
.
stackmax_path
)
else
:
shutil
.
rmtree
(
'stackmax'
)
os
.
mkdir
(
'stackmax'
)
else
:
raise
common
.
LassieError
(
'detections file already exists: %s'
%
config
.
detections_path
)
...
...
@@ -283,8 +279,7 @@ def scan(
if
config
.
stackmax_path
:
io
.
save
([
tr_stackmax
,
tr_stackmax_indx
],
os
.
path
.
join
(
config
.
stackmax_path
,
'trace_%(tmin_ms)s.mseed'
))
else
:
io
.
save
([
tr_stackmax
,
tr_stackmax_indx
],
'stackmax/trace_%(tmin_ms)s.mseed'
)
__all__
=
[
'scan'
,
...
...
src/snuffling.py
View file @
36b2bebc
...
...
@@ -269,8 +269,6 @@ def snuffle(config):
paths
=
config
.
data_paths
if
config
.
stackmax_path
:
paths
.
append
(
config
.
stackmax_path
)
else
:
paths
.
append
(
'stackmax'
)
p
=
pile
.
make_pile
(
paths
=
paths
,
fileformat
=
'detect'
)
snuffler
.
snuffle
(
p
,
stations
=
stations
,
...
...
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