neurosynth/base/dataset.py
def load(cls, filename):
        """ Load a pickled Dataset instance from file. """
        try:
            dataset = pickle.load(open(filename, 'rb'))
        except UnicodeDecodeError:
            # Need to try this for python3
            dataset = pickle.load(open(filename, 'rb'), encoding='latin')

        if hasattr(dataset, 'feature_table'):
            dataset.feature_table._csr_to_sdf()
        return dataset
def load(cls, filename):
        try:
            dataset = pickle.load(open(filename, 'rb'))
        except UnicodeDecodeError:
            # Need to try this for python3
            dataset = pickle.load(open(filename, 'rb'), encoding='latin')

        if hasattr(dataset, 'feature_table'):
            dataset.feature_table._csr_to_sdf()
        return dataset
def load ( cls , filename ) : try : dataset = pickle . load ( open ( filename , 'rb' ) ) except UnicodeDecodeError : # Need to try this for python3 dataset = pickle . load ( open ( filename , 'rb' ) , encoding = 'latin' ) if hasattr ( dataset , 'feature_table' ) : dataset . feature_table . _csr_to_sdf ( ) return dataset
Load a pickled Dataset instance from file.
Load a pickled Dataset instance from file .