Skip to content

ENH: Add overlap add classes - #7598

Merged
larsoner merged 4 commits into
mne-tools:masterfrom
larsoner:cola2
Apr 11, 2020
Merged

larsoner merged 4 commits into
mne-tools:masterfrom
larsoner:cola2

Conversation

@larsoner

@larsoner larsoner commented Apr 10, 2020 •

Copy link
Copy Markdown
Member

This PR just refactors existing code to:

  1. Make use of a generic overlap-add processing class (OTP), and
  2. Make Interp2 more flexible

This will eventually allow combining the two methods and using them more easily. For examlpe, @mmagnuski suggested that the reason spectrum_fit does not work and takes forever (#7577) is perhaps because it does not work in overlapping windows, but rather the entire raw file. With the _OLA class it should be much easier to make it operate on overlapping windows.

* upstream/master: (1522 commits)
  FIX: Show bug
  MRG, FIX: Datetime call in gdf 2.x age calculation (mne-tools#7581)
  DOC: Simplify Darwin installation (mne-tools#7584)
  MRG, ENH: Allow picking without preload (mne-tools#7507)
  DOC: Document anonymization better (mne-tools#7587)
  Rework _Brain show (mne-tools#7580)
  DOC: Fixes in tutorial (mne-tools#7579)
  ENH: muscle artifact detection (mne-tools#7407)
  MRG: Remove toolbars in PyVista plotter (mne-tools#7572)
  WIP: Deregister plotter from the figure list in close() (mne-tools#7573)
  MRG: Fix mouse wheel event in _TimeViewer (mne-tools#7563)
  FIX: Fix toggle all (mne-tools#7567)
  MRG, FIX: parallel n_jobs check (mne-tools#7566)
  Rename artifact detection to movement detection (mne-tools#7569)
  ENH: Update spelling check [ci skip] (mne-tools#7565)
  MRG, ENH: Dont require preload for raw resample (mne-tools#7508)
  MRG: Add interpolation for NIRS signals (mne-tools#7428)
  WIP: Add temporal derivative distribution repair algorithm (mne-tools#7556)
  DOC: fix link in docstr [skip ci] (mne-tools#7562)
  ENH: Custom figure title when plotting Dipole locations (mne-tools#7558)
  ...
@larsoner larsoner changed the title Cola2 ENH: Add overlap add classes Apr 10, 2020
@larsoner

Copy link
Copy Markdown
Member Author

Basically as long as the raw simulation tests pass (Interp2) and the OTP tests pass (_OLA), along with the builtin tests for Interp2 and _OLA, we should be able to trust the results here (I hope!).

Ready for review/merge from my end

@codecov

codecov Bot commented Apr 10, 2020

Copy link
Copy Markdown

Codecov Report

Merging #7598 into master will increase coverage by 0.00%.
The diff coverage is 91.42%.

@@           Coverage Diff            @@
##           master    #7598    +/-   ##
========================================
  Coverage   90.14%   90.14%            
========================================
  Files         452      453     +1     
  Lines       83053    83280   +227     
  Branches    13127    13190    +63     
========================================
+ Hits        74864    75070   +206     
- Misses       5355     5363     +8     
- Partials     2834     2847    +13     

@agramfort

Copy link
Copy Markdown
Member

it's just a refactoring using a class / generator?

@larsoner

Copy link
Copy Markdown
Member Author

Yes to make it easier to use it elsewhere

@agramfort

agramfort commented Apr 11, 2020 via email

Copy link
Copy Markdown
Member

@larsoner
larsoner merged commit b50a78f into mne-tools:master Apr 11, 2020
@larsoner
larsoner deleted the cola2 branch April 11, 2020 16:48
@larsoner
larsoner restored the cola2 branch April 25, 2023 15:27
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.

2 participants