Source code for bsb.simulation.component

import abc

from .. import config
from .._util import obj_str_insert


[docs] @config.node class SimulationComponent(abc.ABC): name: str = config.attr(key=True) @property def simulation(self): return self._config_parent._config_parent @obj_str_insert def __str__(self): return f"'{self.name}'"
__all__ = ["SimulationComponent"]