def extend(self, ampal_container):
        """Extends an `AmpalContainer` with another `AmpalContainer`."""
        if isinstance(ampal_container, AmpalContainer):
            self._ampal_objects.extend(ampal_container)
        else:
            raise TypeError(
                'Only AmpalContainer objects may be merged with '
                'an AmpalContainer.')
        return
def extend ( self , ampal_container ) : if isinstance ( ampal_container , AmpalContainer ) : self . _ampal_objects . extend ( ampal_container ) else : raise TypeError ( 'Only AmpalContainer objects may be merged with ' 'an AmpalContainer.' ) return
Extends an `AmpalContainer` with another `AmpalContainer`.