Skip to content

Documentation for copy parameter in CSD inaccurate #9319

Closed

Description

@fbaumgardt

It appears that this line in the CSD documentation is not accurate:

This function applies an average reference to the data if copy is False.

I.e. I don't see any code for re-referencing based on the parameter. Also, the type validation happens after its use.

Activity

  1. welcome commented on Apr 19, 2021

    @welcome

    Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴🏽‍♂️

  2. agramfort commented on Apr 19, 2021

    @agramfort
    SponsorMember

    maybe for @alexrockhill or @dengemann ?

  3. alexrockhill commented on Apr 19, 2021

    @alexrockhill
    Contributor

    I think the note is for the code as it was previously and then the average reference got taken out. I don't think it should have, that was with mine and @larsoner's last PR fixing the CSD. I'll look at the old, not fixed version and see if the line that re-references should be put back in.

  4. alexrockhill commented on Apr 19, 2021

    @alexrockhill
    Contributor

    I thought Eric mentioned that the average reference should always be applied for CSD so I made a PR to change to ensure that but I'm not sure why exactly it is the case that average reference is necessary

  5. fbaumgardt commented on Apr 19, 2021

    @fbaumgardt
    Author

    Yeah, I'm just scanning through https://psychophysiology.cpmc.columbia.edu/Software/CSDtoolbox/faq.html to figure out if it's required. I had to remove an implicit reference but I'm still parsing out whether mastoid references are okay.

    Thanks for the code and for dealing with the issue!

  6. fbaumgardt commented on Apr 19, 2021

    @fbaumgardt
    Author
  7. alexrockhill commented on Apr 19, 2021

    @alexrockhill
    Contributor

    Hmm okay so maybe the note should be changed then...

  8. alexrockhill commented on Apr 19, 2021

    @alexrockhill
    Contributor

    Great, so I think the function works as is (besides the copy type validation but that doesn't really effect the output) but the documentation will be clarified when #9320 merges and the validation will also be in the right order.

  9. alexrockhill commented on Apr 20, 2021

    @alexrockhill
    Contributor

    PR merged, I think this is good to be closed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions