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

Apply notch filter appropriate number of times based on --motion-filter-order #1300

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Oct 21, 2024

Closes #1272 and closes #1278. Thanks to @cindyhfls for detecting the problem and figuring out the solution.

Changes proposed in this pull request

  • Divide the --motion-filter-order parameter by 4 instead of 2 when using the "notch" motion filter, as iirnotch is a second-order filter and filtfilt applies the filter both forwards and backwards (equaling 4 total applications).
  • Update the documentation to reflect this.
  • Fix a surprising bug related to exact-time correlation matrices. Not sure why it never came up before. See 8f8816f.

@tsalo tsalo added the bug Issues noting problems and PRs fixing those problems. label Oct 21, 2024
@tsalo
Copy link
Member Author

tsalo commented Oct 21, 2024

@cindyhfls would you mind reviewing my changes? Also, given that you detected the problem and proposed the fix, would you like me to add you to our CITATION.cff file? If so, can you provide your information to match this?

xcp_d/CITATION.cff

Lines 13 to 17 in 16b16f7

- given-names: Taylor
family-names: Salo
email: [email protected]
affiliation: University of Pennsylvania
orcid: 'https://orcid.org/0000-0001-9813-3167'

Not sure why this wasn't a problem before now.
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.90%. Comparing base (e842748) to head (acd4b9f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1300      +/-   ##
==========================================
+ Coverage   78.89%   78.90%   +0.01%     
==========================================
  Files          59       59              
  Lines        7376     7381       +5     
  Branches      956      956              
==========================================
+ Hits         5819     5824       +5     
  Misses       1266     1266              
  Partials      291      291              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tsalo
Copy link
Member Author

tsalo commented Oct 28, 2024

@cindyhfls I'm going to merge this now. If you find a problem feel free to open a new issue, and if you'd like to be added to our CITATION.cff please open a PR.

@tsalo tsalo merged commit 9275de8 into PennLINC:main Oct 28, 2024
23 checks passed
@tsalo tsalo deleted the fix-motion-filter branch October 28, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues noting problems and PRs fixing those problems.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible bug in DCANBoldProc that may or may not be relevant to XCP-D
1 participant