question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API: mne.preprocessing.mark_flat --> mne.preprocessing.annotate_flat ?

See original GitHub issue

With the relatively new Annotations in MNE, there are now (at least) two functions that work on raw data and return annotations:

There is an older function operating in a similar style: mne.preprocessing.mark_flat

Would it make sense to change this to mne.preprocessing.anotate_flat to have a set of functions with a consistent API working on raw data and providing annotations?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Jul 12, 2020

(if someone calls mark_flat in 0.21 it should do the same thing as in 0.20 but give dep warning, annotate_flat should do whatever we want annotate_* functions to do)

2reactions
drammockcommented, Jul 12, 2020

But we should make sure that the current mark_flat, if renamed to annotate_flat, matches the behavior of the existing annotate_* functions, namely, stop modifying the input in-place, and return Annotations instead.

Agreed; I think that was part of @sappelhoff’s original proposal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.preprocessing.annotate_movement - MNE-Python
Detects segments periods further from rotation_velocity_limit, translation_velocity_limit and mean_distance_limit. It returns an annotation with ...
Read more >
mne.preprocessing.compute_current_source_density returns ...
MNE version: 1.1.1 Hi, I've just converted some monopolar EEG data (in Volts) to CSD using mne.preprocessing.compute_current_source_density, ...
Read more >
Import and export data to and from MNE-Python
We cannot assure that the API in MNE-Python will remain the same in the ... use this preprocessed data to create ERP (ft_datatype_timelock)....
Read more >
Artifact Correction with ICA - | notebook.community
Epochs object around blink or heartbeat events. ICA is implemented in MNE using the :class: mne.preprocessing.ICA class, which we will review here.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found