Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Add additional mCCA example #69

Merged
merged 7 commits into from
Jun 12, 2023
Merged

[ENH] Add additional mCCA example #69

merged 7 commits into from
Jun 12, 2023

Conversation

johnkylecooper
Copy link
Contributor

Hi, thanks for the amazing toolbox! I would like to add an additional example using the MCCA implementation in python-meegkit since I was initially having trouble understanding how the implementation is used to extract an underlying signal from concatenated data matrices. Maybe this will help others when applying more complex signals to the MCCA function.
The example is example #1 taken from de Cheveigné et al., 2018. I believe that the code is correct and reproduces the results shown in Figure 4. Note: this is my first pull request, so I apologize in advance if anything isn't properly implemented.

@codecov
Copy link

codecov bot commented Jun 11, 2023

Codecov Report

Merging #69 (b36c564) into master (d9326e7) will not change coverage.
The diff coverage is n/a.

❗ Current head b36c564 differs from pull request most recent head 7411f0a. Consider uploading reports for the commit 7411f0a to get more accurate results

@@           Coverage Diff           @@
##           master      #69   +/-   ##
=======================================
  Coverage   78.87%   78.87%           
=======================================
  Files          22       22           
  Lines        2367     2367           
=======================================
  Hits         1867     1867           
  Misses        500      500           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@johnkylecooper
Copy link
Contributor Author

Hi, I'm happy to see that my pr has passed all but one of the tests. With regards to the test that failed, I'm not sure I can fix it on my end. Here is the error:

remote: Permission to nbara/python-meegkit.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/nbara/python-meegkit/': The requested URL returned error: 403

Best,
John Kyle

@nbara
Copy link
Owner

nbara commented Jun 11, 2023

Hey John, thanks for this! I will have a look asap. The doc build job should be an easy fix

@nbara nbara changed the title add additional mcca example [ENH] Add additional mCCA example Jun 12, 2023
@nbara nbara added the enhancement New feature or request label Jun 12, 2023
@nbara
Copy link
Owner

nbara commented Jun 12, 2023

Hi @johnkylecooper, the example looks great.

FWIW, you don't need to generate both the example_*.ipynb example AND the example_*.py files.

Just do you code in the .py file, and run make build-examples and the notebooks will be automatically generated from the .py files (including headers and sections).

Again, thanks for the contribution. I don't use the code in meegkit that much these days for my own work but I'm happy to keep maintaining it if it helps others 🙂

PS: the doc build fails it comes from a fork. It's a CI bug, nothing to do with your example.

@nbara nbara merged commit 89034f5 into nbara:master Jun 12, 2023
3 of 4 checks passed
@nbara
Copy link
Owner

nbara commented Jun 12, 2023

@johnkylecooper
Copy link
Contributor Author

https://nbara.github.io/python-meegkit/auto_examples/example_mcca_2.html#sphx-glr-auto-examples-example-mcca-2-py looking good ! ;)

Thanks! :)

Hi @johnkylecooper, the example looks great.

FWIW, you don't need to generate both the example_*.ipynb example AND the example_*.py files.

Just do you code in the .py file, and run make build-examples and the notebooks will be automatically generated from the .py files (including headers and sections).

Again, thanks for the contribution. I don't use the code in meegkit that much these days for my own work but I'm happy to keep maintaining it if it helps others 🙂

PS: the doc build fails it comes from a fork. It's a CI bug, nothing to do with your example.

Also, thanks for the tips! :)
Yes, I mainly use meegkit for the preprocessing tools (for eeg recordings) and now mcca. It's very handy! I have a lot of respect for you guys who maintain open-source projects! I hope to be able to contribute more to projects in the future!

Going to delete my branch and delete the fork now.

Best,
John Kyle

@johnkylecooper johnkylecooper deleted the add_mcca_example branch June 12, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants