Skip to content

Changed bad-by-flat threshold to match MATLAB PREP - #60

Merged
sappelhoff merged 2 commits into
sappelhoff:masterfrom
a-hurst:fix_flat_threshold
Apr 9, 2021
Merged

sappelhoff merged 2 commits into
sappelhoff:masterfrom
a-hurst:fix_flat_threshold

Conversation

@a-hurst

@a-hurst a-hurst commented Apr 8, 2021

Copy link
Copy Markdown
Collaborator

PR Description

Closes #59.

Basically, this PR just corrects for the fact that EEGLAB's internal units are in micro volts whereas MNE's internal units are in volts.

Merge Checklist

  • the PR has been reviewed and all comments are resolved
  • all CI checks pass
  • (if applicable): the PR description includes the phrase closes #<issue-number> to automatically close an issue
  • (if applicable): bug fixes, new features, or API changes are documented in whats_new.rst

@a-hurst a-hurst mentioned this pull request Apr 8, 2021
22 of 23 tasks

@sappelhoff sappelhoff left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :-)

just a style suggestion: When a constant like "flat_threshold" is introduced, I like to make this upper case only to clearly indicate that this is a constant.

Comment thread pyprep/find_noisy_channels.py Resolved
Comment thread pyprep/find_noisy_channels.py Resolved
@a-hurst

a-hurst commented Apr 9, 2021

Copy link
Copy Markdown
Collaborator Author

just a style suggestion: When a constant like "flat_threshold" is introduced, I like to make this upper case only to clearly indicate that this is a constant.

Fixed in the latest commit!

@sappelhoff

Copy link
Copy Markdown
Owner

Thanks!

@sappelhoff
sappelhoff merged commit 99be20c into sappelhoff:master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Bad by flat" threshold differs between PyPREP and Matlab PREP

2 participants