Coverage for src/ufig/run_util.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-12 19:08 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-12 19:08 +0000
1# Copyright (c) 2016 ETH Zurich, Institute of Astronomy, Cosmology Research Group
3"""
4Created on Sep 30, 2016
5@author: Joerg Herbel
6"""
8import ivy
11def run_ufig_from_config(config, **kwargs):
12 """
13 Run UFig using an (importable) configuration file. Additional parameters can be
14 provided as keyword arguments.
15 :param config: Importable configuration file.
16 :param kwargs: Additional parameter values.
17 :return: Ivy-context created by UFig
18 """
19 ctx = ivy.execute(config, **kwargs)
20 return ctx