(self, name: str)
Removes the layer called name.

        This will throw an exception if other layers depend upon this layer

        Args:
            name: The name of the layer to delete
Removes the layer called name.
Removes the layer called name .
def del_layer(self, name: str) -> None:
        """Removes the layer called name.

        This will throw an exception if other layers depend upon this layer

        Args:
            name: The name of the layer to delete
        """
        for layer in self._layers:
            depend_list = [superlayer for superlayer in self._layers if name in self._layers[layer].dependencies]
            if depend_list:
                raise exceptions.LayerException(
                    self._layers[layer].name,
                    "Layer {} is depended upon: {}".format(self._layers[layer].name, ", ".join(depend_list)))
        self._layers[name].destroy()
        del self._layers[name]
def del_layer ( self , name : str ) -> None : for layer in self . _layers : depend_list = [ superlayer for superlayer in self . _layers if name in self . _layers [ layer ] . dependencies ] if depend_list : raise exceptions . LayerException ( self . _layers [ layer ] . name , "Layer {} is depended upon: {}" . format ( self . _layers [ layer ] . name , ", " . join ( depend_list ) ) ) self . _layers [ name ] . destroy ( ) del self . _layers [ name ]