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
c58e9d7c
Commit
c58e9d7c
authored
Dec 11, 2017
by
Sebastian Heimann
Browse files
fix `lassie snuffle` with automatic grid
parent
80196ca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/config.py
View file @
c58e9d7c
...
@@ -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
:
...
...
src/core.py
View file @
c58e9d7c
...
@@ -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
()
...
...
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