How to use the wfdb.dl_database function in wfdb

To help you get started, we’ve selected a few wfdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Seb-Good / deepecg / deepecg / training / data / datasets / afdb.py View on Github external
def generate_raw_db(self):
        """Generate the raw version of the MIT-BIH Atrial Fibrillation database in the 'raw' folder."""
        print('Generating Raw MIT-BIH Atrial Fibrillation Database ...')
        # Download database
        wfdb.dl_database(self.db_name, self.raw_path)

        # Get list of recordings
        self.record_ids = [file.split('.')[0] for file in os.listdir(self.raw_path) if '.dat' in file]
        print('Complete!\n')
github Seb-Good / deepecg / deepecg / training / data / datasets / nsrdb.py View on Github external
def generate_raw_db(self):
        """Generate the raw version of the MIT-BIH Normal Sinus Rhythm database in the 'raw' folder."""
        print('Generating Raw MIT-BIH Normal Sinus Rhythm Database ...')
        # Download database
        wfdb.dl_database(self.db_name, self.raw_path)

        # Get list of recordings
        self.record_ids = [file.split('.')[0] for file in os.listdir(self.raw_path) if '.dat' in file]
        print('Complete!\n')

wfdb

The WFDB Python package: tools for reading, writing, and processing physiologic signals and annotations.

MIT
Latest version published 11 months ago

Package Health Score

71 / 100
Full package analysis

Similar packages