Source code for piel.models.frequency.utils

from .defaults import get_default_models

__all__ = [
    "compose_custom_model_library_from_defaults",
]


[docs]def compose_custom_model_library_from_defaults(custom_models: dict, *args, **kwargs) -> dict: """ Compose the default models with the custom models. Args: custom_models (dict): Custom models dictionary. Returns: dict: Composed models dictionary. """ return {**get_default_models(*args, **kwargs), **custom_models}
def check_is_unitary(model: dict) -> bool: """ Check if the model is unitary. Args: model (dict): Model dictionary. Returns: bool: True if unitary, False if not. """ # TODO pass