can get uncalculated property + can add storage when init mixconfig
This commit is contained in:
parent
212fd5f16d
commit
358a49c0e2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user