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

# 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.2.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.2-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tnbs_stim_clean-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4a4f4a87fb536458d08a0360f4497f72a6104a4ab74a4bfb71dbeea1fd78fcdf
MD5 0a6a8737db30f9d1ca70ad81d6ea96a1
BLAKE2b-256 04a2810d9d06c8c32f0bb3e11b77c07cdcfe8e9e53ea45204dc02a2164065504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tnbs_stim_clean-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53bc8d6e7a42a601da49a59dacc641f788a304e2816f12661253ccfc637fcdae
MD5 fc2a844c444063efb6dfca10cdfec42c
BLAKE2b-256 044db6dd918a86b5b5d794851de82a90e191cb790a71dc5795e5147e1462384a

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