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
lassie
Commits
7c93ebc5
Commit
7c93ebc5
authored
Jul 25, 2017
by
Marius Kriegerowski
Browse files
py3
parent
4ee9647e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/snuffling.py
View file @
7c93ebc5
...
@@ -95,6 +95,7 @@ class LassieSnuffling(Snuffling):
...
@@ -95,6 +95,7 @@ class LassieSnuffling(Snuffling):
# self.add_trigger('read Lassie config', self.fail)
# self.add_trigger('read Lassie config', self.fail)
self
.
set_live_update
(
True
)
self
.
set_live_update
(
True
)
self
.
markers_compare
=
[]
self
.
markers_compare
=
[]
self
.
detections
=
[]
self
.
fig
=
None
self
.
fig
=
None
self
.
fframe
=
None
self
.
fframe
=
None
self
.
grid
=
self
.
config
.
get_grid
()
self
.
grid
=
self
.
config
.
get_grid
()
...
@@ -252,6 +253,8 @@ def __snufflings__():
...
@@ -252,6 +253,8 @@ def __snufflings__():
def
snuffle
(
config
):
def
snuffle
(
config
):
global
_lassie_config
global
_lassie_config
_lassie_config
=
copy
.
deepcopy
(
config
)
_lassie_config
=
copy
.
deepcopy
(
config
)
for
_ifc
in
_lassie_config
.
image_function_contributions
:
_ifc
.
setup
(
config
)
def
load_snuffling
(
win
):
def
load_snuffling
(
win
):
s
=
LassieSnuffling
()
s
=
LassieSnuffling
()
...
@@ -285,6 +288,10 @@ def snuffle(config):
...
@@ -285,6 +288,10 @@ def snuffle(config):
paths
.
append
(
config
.
get_ifm_dir_path
())
paths
.
append
(
config
.
get_ifm_dir_path
())
p
=
pile
.
make_pile
(
paths
=
paths
,
fileformat
=
'detect'
)
p
=
pile
.
make_pile
(
paths
=
paths
,
fileformat
=
'detect'
)
for
tr
in
p
.
iter_traces
(
trace_selector
=
lambda
x
:
x
.
station
==
'SMAX'
):
tr
.
meta
=
{
'tabu'
:
True
}
snuffler
.
snuffle
(
p
,
stations
=
stations
,
snuffler
.
snuffle
(
p
,
stations
=
stations
,
launch_hook
=
load_snuffling
)
launch_hook
=
load_snuffling
)
...
...
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