Commit c58e9d7c authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

fix `lassie snuffle` with automatic grid

parent 80196ca2
...@@ -123,6 +123,13 @@ class Config(HasPaths): ...@@ -123,6 +123,13 @@ class Config(HasPaths):
self._events = None self._events = None
self._config_name = 'untitled' self._config_name = 'untitled'
def setup_image_function_contributions(self):
'''
Post-init setup of image function contributors.
'''
for ifc in self.image_function_contributions:
ifc.setup(self)
def set_config_name(self, config_name): def set_config_name(self, config_name):
self._config_name = config_name self._config_name = config_name
...@@ -195,6 +202,8 @@ class Config(HasPaths): ...@@ -195,6 +202,8 @@ class Config(HasPaths):
def get_grid(self): def get_grid(self):
'''Get grid or make default grid.''' '''Get grid or make default grid.'''
self.setup_image_function_contributions()
if self._grid is None: if self._grid is None:
if not self.grid: if not self.grid:
......
...@@ -147,9 +147,8 @@ def search( ...@@ -147,9 +147,8 @@ def search(
events_path = config.get_events_path() events_path = config.get_events_path()
figures_path_template = config.get_figures_path_template() figures_path_template = config.get_figures_path_template()
config.setup_image_function_contributions()
ifcs = config.image_function_contributions ifcs = config.image_function_contributions
for ifc in ifcs:
ifc.setup(config)
grid = config.get_grid() grid = config.get_grid()
receivers = config.get_receivers() receivers = config.get_receivers()
......
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