From 358a49c0e2a45288e6ab963e954bd75687676e01 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 2 Dec 2019 10:37:21 +0100 Subject: [PATCH] can get uncalculated property + can add storage when init mixconfig --- tiramisu/api.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tiramisu/api.py b/tiramisu/api.py index 943ab49..2935d7e 100644 --- a/tiramisu/api.py +++ b/tiramisu/api.py @@ -203,9 +203,13 @@ class _TiramisuOptionOptionDescription(CommonTiramisuOption): return option.impl_is_optiondescription() def properties(self, - only_raises=False): + only_raises=False, + uncalculated=False): """Get properties for an option""" settings = self._option_bag.config_bag.context.cfgimpl_get_settings() + if uncalculated: + return settings.getproperties(self._option_bag, + uncalculated=True) if not only_raises: return settings.getproperties(self._option_bag, apply_requires=False) @@ -1565,6 +1569,7 @@ class MetaConfig(TiramisuAPI): session_id: Union[str, None]=None, persistent: bool=False, optiondescription: Optional[OptionDescription]=None, + storage=None, display_name=None) -> None: if isinstance(children, KernelMetaConfig): config = children @@ -1580,7 +1585,8 @@ class MetaConfig(TiramisuAPI): session_id=session_id, persistent=persistent, optiondescription=optiondescription, - display_name=display_name) + display_name=display_name, + storage=storage) super().__init__(config) @@ -1591,6 +1597,7 @@ class MixConfig(TiramisuAPI): children: List[Config], session_id: Optional[str]=None, persistent: bool=False, + storage=None, display_name: Callable=None) -> None: if isinstance(children, KernelMixConfig): config = children @@ -1606,6 +1613,7 @@ class MixConfig(TiramisuAPI): _children, session_id=session_id, persistent=persistent, + storage=storage, display_name=display_name) super().__init__(config)