libs/data/mass.py
def _get_file_paths(self):
        """Returns a list of dicts containing paths to load the database."""
        # Build list of paths
        data_paths = {}
        for subject_id in self.all_ids:
            path_eeg_file = os.path.join(
                self.dataset_dir, PATH_REC,
                '01-02-%04d PSG.edf' % subject_id)
            path_states_file = os.path.join(
                self.dataset_dir, PATH_STATES,
                '01-02-%04d Base.edf' % subject_id)
            # Save paths
            ind_dict = {
                KEY_FILE_EEG: path_eeg_file,
                KEY_FILE_STATES: path_states_file
            }
            # Check paths
            for key in ind_dict:
                if not os.path.isfile(ind_dict[key]):
                    print(
                        'File not found: %s' % ind_dict[key])
            data_paths[subject_id] = ind_dict
        print('%d records in %s dataset.' % (len(data_paths), self.dataset_name))
        print('Subject IDs: %s' % self.all_ids)
        return data_paths
Returns a list of dicts containing paths to load the database.
Returns a list of dicts containing paths to load the database.
Returns a list of dicts containing paths to load the database .
def _get_file_paths(self):
        data_paths = {}
        for subject_id in self.all_ids:
            path_eeg_file = os.path.join(
                self.dataset_dir, PATH_REC,
                '01-02-%04d PSG.edf' % subject_id)
            path_states_file = os.path.join(
                self.dataset_dir, PATH_STATES,
                '01-02-%04d Base.edf' % subject_id)
            ind_dict = {
                KEY_FILE_EEG: path_eeg_file,
                KEY_FILE_STATES: path_states_file
            }
            for key in ind_dict:
                if not os.path.isfile(ind_dict[key]):
                    print(
                        'File not found: %s' % ind_dict[key])
            data_paths[subject_id] = ind_dict
        print('%d records in %s dataset.' % (len(data_paths), self.dataset_name))
        print('Subject IDs: %s' % self.all_ids)
        return data_paths
def _get_file_paths ( self ) : data_paths = { } for subject_id in self . all_ids : path_eeg_file = os . path . join ( self . dataset_dir , PATH_REC , '01-02-%04d PSG.edf' % subject_id ) path_states_file = os . path . join ( self . dataset_dir , PATH_STATES , '01-02-%04d Base.edf' % subject_id ) ind_dict = { KEY_FILE_EEG : path_eeg_file , KEY_FILE_STATES : path_states_file } for key in ind_dict : if not os . path . isfile ( ind_dict [ key ] ) : print ( 'File not found: %s' % ind_dict [ key ] ) data_paths [ subject_id ] = ind_dict print ( '%d records in %s dataset.' % ( len ( data_paths ) , self . dataset_name ) ) print ( 'Subject IDs: %s' % self . all_ids ) return data_paths
Returns a list of dicts containing paths to load the database.
Returns a list of dicts containing paths to load the database .
"""Returns a list of dicts containing paths to load the database.""" # Build list of paths # Save paths # Check paths
self