def loadWeightsFromFile(self, filename, mode='pickle'):
        """
        Deprecated. Use loadWeights instead.
        """
        Network.loadWeights(self, filename, mode)
        self.updateGraphics()