Skip to main content

No project description provided

Project description

tnbsclean

Description

tnbsclean provides functionality to clean EEG, MEG, and other time-series data from mne-python by removing unwanted stimuli using the tnbsclean function. This is especially useful in preprocessing to remove noise or artifacts from signals caused by stimuli events.

Installation

You can install the package via pip from PyPI:

pip install tnbsclean

Example use

import tnbsclean as tnbs

# Example parameters
raw  # Raw time series data in MNE's raw object format
half_win = 100  # Half window size around each stimulus (in samples) that will be chopped away from the artifact peak point
threshold = 0.0001  # Threshold above which stimulus is considered significant

# Apply stimulus cleaning 
raw_cleaned = tnbs.stim_clean(raw, half_win, threshold)

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

tnbsclean-0.1.7.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tnbsclean-0.1.7-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file tnbsclean-0.1.7.tar.gz.

File metadata

  • Download URL: tnbsclean-0.1.7.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tnbsclean-0.1.7.tar.gz
Algorithm Hash digest
SHA256 a1e346dcf29da2bbe5407ba9d3a5259642fa6d7f53b38cc3f4a8f197354c3e63
MD5 4c57692da12c1cf1ccc65a6e4d701fc8
BLAKE2b-256 0672e4fcd42399d341a636389d768953e11414294eb090d6b1b2f66dba4cb427

See more details on using hashes here.

File details

Details for the file tnbsclean-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: tnbsclean-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tnbsclean-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8a8b04e453e787d9d1db5369036d177d953ea5e626cd8a063cb70e9808ba82c3
MD5 55887c25c52a132968d0474f7eb46d2d
BLAKE2b-256 eb5d0da7848efcde74433cf990052531c48b96001ad09e731e6e17f8a7d75339

See more details on using hashes here.

Supported by

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