add snakemake object to custom_extra_functionality arguments
This commit is contained in:
parent
8054ad382c
commit
cfd689bbec
@ -4,7 +4,7 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
|
||||||
def custom_extra_functionality(n, snapshots):
|
def custom_extra_functionality(n, snapshots, snakemake):
|
||||||
"""
|
"""
|
||||||
Add custom extra functionality constraints.
|
Add custom extra functionality constraints.
|
||||||
"""
|
"""
|
||||||
|
@ -835,7 +835,7 @@ def extra_functionality(n, snapshots):
|
|||||||
sys.path.append(os.path.dirname(source_path))
|
sys.path.append(os.path.dirname(source_path))
|
||||||
module_name = os.path.splitext(os.path.basename(source_path))[0]
|
module_name = os.path.splitext(os.path.basename(source_path))[0]
|
||||||
module = importlib.import_module(module_name)
|
module = importlib.import_module(module_name)
|
||||||
module.custom_extra_functionality(n, snapshots)
|
module.custom_extra_functionality(n, snapshots, snakemake)
|
||||||
|
|
||||||
|
|
||||||
def solve_network(n, config, solving, opts="", **kwargs):
|
def solve_network(n, config, solving, opts="", **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user