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

364 rewire connectivity analysis #366

Merged
merged 12 commits into from
Oct 27, 2022
Merged

Conversation

tensionhead
Copy link
Contributor

@tensionhead tensionhead commented Oct 21, 2022

Addresses #364 , such that users can fine-tune and post-process SpectralData before inputting into connectivityanalysis. The old way of directly inputting AnalogData was preserved.

Author Guidelines

  • Is the change set < 600 lines?
  • Was the code checked for memory leaks/performance bottlenecks?
  • Is the code running locally and on the ESI cluster?
  • Is the code running on all supported platforms?

Reviewer Checklist

  • Are testing routines present?
  • Do parallel loops have a set length and correct termination conditions?
  • Do objects in the global package namespace perform proper parsing of their input?
  • Do code-blocks provide novel functionality, i.e., no re-factoring using builtin/external packages possible?
  • Code layout
    • Is the code PEP8 compliant?
    • Does the code adhere to agreed-upon naming conventions?
    • Are keywords clearly named and easy to understand?
    • No commented-out code?
  • Are all docstrings complete and accurate?
  • Is the CHANGELOG.md up to date?

- now all what remains is to populate the SpectralData input branch

Changes to be committed:
	modified:   syncopy/nwanalysis/connectivity_analysis.py
- basic manual testing shows sames results when compared to AnalogData
input after freqanalysis

Changes to be committed:
	modified:   syncopy/nwanalysis/ST_compRoutines.py
	modified:   syncopy/nwanalysis/connectivity_analysis.py
	modified:   syncopy/nwanalysis/csd.py
	modified:   syncopy/shared/computational_routine.py
	modified:   syncopy/shared/input_processors.py
- also smaller fixes regarding effective parameter checks

Changes to be committed:
	modified:   syncopy/nwanalysis/ST_compRoutines.py
	modified:   syncopy/nwanalysis/connectivity_analysis.py
	modified:   syncopy/shared/const_def.py
	modified:   syncopy/shared/input_processors.py
	modified:   syncopy/specest/compRoutines.py
	modified:   syncopy/specest/freqanalysis.py
- to reach agreement with Granger connectivity analysis, there this is
on by default
- added also basic test of polymorphic connectivity frontend

Changes to be committed:
	modified:   syncopy/nwanalysis/connectivity_analysis.py
	modified:   syncopy/specest/freqanalysis.py
	modified:   syncopy/tests/test_connectivity.py
- check conditions on SpectralData (complex, multi-trial, no taper average)
- fidelity of both ways to get to a result is checked

Changes to be committed:
	modified:   syncopy/nwanalysis/connectivity_analysis.py
	modified:   syncopy/shared/input_processors.py
	modified:   syncopy/tests/test_connectivity.py
- instead of digging into cfgs, just check that the dtype of the
SpectralData is complex. This should allow more free pre-processing

Changes to be committed:
	modified:   syncopy/nwanalysis/connectivity_analysis.py
	modified:   syncopy/tests/test_connectivity.py
@tensionhead tensionhead linked an issue Oct 21, 2022 that may be closed by this pull request
@dfsp-spirit dfsp-spirit self-assigned this Oct 25, 2022
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Base: 69.84% // Head: 70.25% // Increases project coverage by +0.41% 🎉

Coverage data is based on head (b4637c3) compared to base (95122b2).
Patch coverage: 85.15% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #366      +/-   ##
==========================================
+ Coverage   69.84%   70.25%   +0.41%     
==========================================
  Files          76       76              
  Lines        9009     9065      +56     
  Branches     1890     1902      +12     
==========================================
+ Hits         6292     6369      +77     
+ Misses       2273     2256      -17     
+ Partials      444      440       -4     
Impacted Files Coverage Δ
syncopy/nwanalysis/csd.py 86.95% <ø> (ø)
syncopy/nwanalysis/connectivity_analysis.py 74.34% <77.64%> (+2.79%) ⬆️
syncopy/nwanalysis/ST_compRoutines.py 89.47% <100.00%> (-0.11%) ⬇️
syncopy/shared/computational_routine.py 81.19% <100.00%> (+0.08%) ⬆️
syncopy/shared/const_def.py 100.00% <100.00%> (ø)
syncopy/shared/input_processors.py 58.22% <100.00%> (+1.89%) ⬆️
syncopy/specest/compRoutines.py 92.22% <100.00%> (+3.18%) ⬆️
syncopy/specest/freqanalysis.py 67.81% <100.00%> (+3.75%) ⬆️
syncopy/plotting/_helpers.py 87.50% <0.00%> (-3.13%) ⬇️
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@dfsp-spirit dfsp-spirit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks great. I played around with it and changed some minor things. Pascal will be happy about this!

@dfsp-spirit dfsp-spirit merged commit 91dbada into dev Oct 27, 2022
@tensionhead tensionhead deleted the 364-rewire-connectivity-analysis branch October 27, 2022 11:44
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.

Rewire connectivity analysis
2 participants