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-1.2.tar.gz (2.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-1.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tnbsclean-1.2.tar.gz
Algorithm Hash digest
SHA256 b014fc1ec01fb5d969791600f640ee71324c4ab6de6c15d5d05944997076db05
MD5 34b9957a1e5ed5795edcdf4e67e9f06d
BLAKE2b-256 402cef95df5f3b62fe3da444b56cac6b15e043f7717853ac7e2e55e1f36c54d3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tnbsclean-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e618cdcd2c0b25575afd01bce63ece44e840391e3c14d2533dbcdbc909851cb
MD5 3d66c4da71e077928258fe36563955ec
BLAKE2b-256 181033ef8e4dc700c963c3256fe8889ad7b3b816f2fac32951182f622f5a6cc1

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