def load_model_from_file(self, filename):
        """Load one parameter set from a file which contains one value per line

        No row is skipped.

        Parameters
        ----------
        filename : string, file path
            Filename to loaded data from

        Returns
        -------
        pid : int
            ID of parameter set
        """
        assert os.path.isfile(filename)
        data = np.loadtxt(filename).squeeze()
        assert len(data.shape) == 1
        pid = self.add_data(data)
        return pid
def load_model_from_file ( self , filename ) : assert os . path . isfile ( filename ) data = np . loadtxt ( filename ) . squeeze ( ) assert len ( data . shape ) == 1 pid = self . add_data ( data ) return pid
Load one parameter set from a file which contains one value per line

        No row is skipped.

        Parameters
        ----------
        filename : string, file path
            Filename to loaded data from

        Returns
        -------
        pid : int
            ID of parameter set