Giter VIP home page Giter VIP logo

Comments (4)

sappelhoff avatar sappelhoff commented on May 25, 2024

Hey @christian-oreilly I didn't write that part of the code, but it's most likely for convenience, because only EEG channels are "corrected" in the PREP flow.

But there is certainly a way to keep the EOG channels part of raw and simply ignore them throughout the flow. A PR to achieve that would be welcome!

from pyprep.

yjmantilla avatar yjmantilla commented on May 25, 2024

I was thinking of this just yesterday. Probably at the end we could just add the missing channels. Alternatively the reference and rereference channel parameters that get into pyprep should be able to do the "ignoring" but im not sure of the current behavior down to the lowest level.

EDIT: just checked, in prep_pipeline the drop is done regardless of the the input ref and reref channel parameters.

So I guess the most straightforward way would be to make a copy of the non-eeg channels and then add them at the end. You guys agree?

from pyprep.

christian-oreilly avatar christian-oreilly commented on May 25, 2024

PR #34 would do it. I made it before seeing @yjmantilla comments so I will let you check if it does it how you want it to be done but I think it is well-aligned with the direction you were proposing,i.e., make a copy of the non-eeg channels and merge them back at the end... but I did not do it in the .raw object directly in case it can have side effect. I made it available through a property that add on the fly the missing channels to the .raw object and return a copy.

from pyprep.

yjmantilla avatar yjmantilla commented on May 25, 2024

I think the way you did it is nice. Hopefully after the formatting changes it should complete the tests successfully

from pyprep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.