larvaworld.lib.reg

This module sets up the larvaworld registry where most functions, classes, and configurations are registered. It is initialized automatically when importing the package and serves as an accessible database for all functionalities.

Submodules

Attributes

units

controls

par

default_modelID

Functions

getPar(→ Any)

Shortcut function for easy use directly via the registry.

loadRef(→ Any)

Shortcut function for easy use directly via the registry.

default_ref(→ Any)

default_model(→ Any)

Package Contents

larvaworld.lib.reg.units: pint.UnitRegistry
larvaworld.lib.reg.controls: keymap.ControlRegistry
larvaworld.lib.reg.par: parDB.ParamRegistry
larvaworld.lib.reg.getPar(k: Any | None = None, p: Any | None = None, d: Any | None = None, to_return: str = 'd') Any

Shortcut function for easy use directly via the registry. See ‘par.getPar’ for more information.

larvaworld.lib.reg.loadRef(id: str, **kwargs: Any) Any

Shortcut function for easy use directly via the registry. See ‘conf.Ref.loadRef’ for more information.

larvaworld.lib.reg.default_ref() Any
larvaworld.lib.reg.default_modelID: str = 'explorer'
larvaworld.lib.reg.default_model() Any