Skip to main content

No project description provided

Project description

tnbs_stim_clean

Description

tnbs_stim_clean provides functionality to clean EEG, MEG, and other time-series data from mne-python by removing unwanted stimuli using the tnbs_stim_clean 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 tnbs_stim_clean

Example use

import tnbs_stim_clean 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

tnbs_stim_clean-0.1.6.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.

tnbs_stim_clean-0.1.6-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file tnbs_stim_clean-0.1.6.tar.gz.

File metadata

  • Download URL: tnbs_stim_clean-0.1.6.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 tnbs_stim_clean-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3977d984ad4cc18a955629ebd1f356128147f4710c5fc35500940b357bcc1ded
MD5 c0e23fb74a856d610a0d091ade368b38
BLAKE2b-256 5865a88515aa7ad1927344ed41632c55d03284bef1430d111017ece50589f629

See more details on using hashes here.

File details

Details for the file tnbs_stim_clean-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for tnbs_stim_clean-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4d17e40d0927e4872ccabaa1e9d85fe8929f2b5a6f770d827e0895ef9f9023b7
MD5 ceca0398d08171a5592536443a873591
BLAKE2b-256 5310a2acd07738e0b4d0f32c18eb31a6a2ae1d28d6ebc1eb34833046bab87616

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