taukit/base/metacls.py
def _setcomponents(self, components):
    """Set instance level components.

    Parameters
    ----------
    components : list or tuple of 2-tuples
        Specification of component objects.
        Each 2-tuple consist of component name and object.
    """
    for nm, component in components:
        if hasattr(self, nm):
            errmsg = f"Instance already has attribute '{nm}'"
            raise AttributeError(errmsg)
        setattr(self, nm, component)
    self.__components = OrderedDict(components)
Set instance level components.

    Parameters
    ----------
    components : list or tuple of 2-tuples
        Specification of component objects.
        Each 2-tuple consist of component name and object.
    
Set instance level components.
Parameters

components : list or tuple of 2-tuples
Specification of component objects.
Each 2-tuple consist of component name and object.
Set instance level components . Parameters components : list or tuple of 2 - tuples Specification of component objects . Each 2 - tuple consist of component name and object .
def _setcomponents(self, components):
    for nm, component in components:
        if hasattr(self, nm):
            errmsg = f"Instance already has attribute '{nm}'"
            raise AttributeError(errmsg)
        setattr(self, nm, component)
    self.__components = OrderedDict(components)
def _setcomponents ( self , components ) : for nm , component in components : if hasattr ( self , nm ) : errmsg = f"Instance already has attribute '{nm}'" raise AttributeError ( errmsg ) setattr ( self , nm , component ) self . __components = OrderedDict ( components )
Set instance level components.
Set instance level components .
"""Set instance level components.

    Parameters
    ----------
    components : list or tuple of 2-tuples
        Specification of component objects.
        Each 2-tuple consist of component name and object.
    """
self
components