foxes 1.3 documentation
foxes.utils.Dict
Initializing search
    foxes
    foxes
    • Citation
    • Installation
    • Overview - how to setup foxes
    • Inputs
    • Models
    • Parallelization
    • Input parameter files
    • Examples
    • Optimization
    • API
    • Static data
    • Testing
    • Changelog
    class foxes.utils.Dict(dict)[source]

    A slightly enhanced dictionary.

    Attributes¶

    name: str

    The dictionary name

    Public members¶

    Dict(*args, name=None, **kwargs)[source]

    Constructor.

    get_item(key, *deflt, prnt=True)[source]

    Gets an item, prints readable error if not found

    pop_item(key, *deflt, prnt=True)[source]

    Pops an item, prints readable error if not found

    __getitem__(key)[source]

    Return self[key].

    classmethod from_yaml(yml_file, verbosity=1)[source]

    Reads a yaml file

    © Copyright 2024, Fraunhofer IWES.
    Created using Sphinx 8.1.3. and Sphinx-Immaterial