Skip to main content

Package for detecing HFOs

Project description

HFODetector

RMS detector

Installation

pip install HFODetector==0.0.9

Example usage

test.py

import numpy as np
from HFODetector.RMSDetector import RMS_detector

if __name__ == "__main__":
    edf_path = "example_edf.edf"
    detector = RMS_detector()
    channel_names, start_end = detector.predict_edf(edf_path)
    np.savez_compressed("test_results.npz", channels=channel_names, start_end=HFOs)

python3 test.py to generate test_results.npz

test_results.npz will contain the following:

  • start_end : start and end timestamps of detected edfs ((N,2) array)
  • channel_names : names of channels corresponding to the detected edfs ((N,) array)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

HFODetector-0.0.10.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

HFODetector-0.0.10-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page