Commit 7c93ebc5 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

py3

parent 4ee9647e
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment