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

🎨 Run pre-commit hooks on whole repo #2058

Merged
merged 112 commits into from
May 7, 2024
Merged

🎨 Run pre-commit hooks on whole repo #2058

merged 112 commits into from
May 7, 2024

Conversation

shnizzedy
Copy link
Member

@shnizzedy shnizzedy commented Jan 29, 2024

Fixes

Related to #2048 by @nx10

Description

Technical details

The errors listed here are unresolved in this PR. I'm inclined to use this strategy for those errors ― the next time someone modifies one of those files, they can fix the errors in that file, either in the same PR or in a preceding PR.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the ruff branch of the repository.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added tests for the changes I made (if applicable).
  • I updated the changelog.
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

mgxd and others added 16 commits August 9, 2017 17:04
fix: python 2 Function interfaces recompatibility
Revert "fix: python 2 Function interfaces recompatibility"
Leaving this errors unresolved in this commit:

.github/scripts/get_package_id.py:14:5: D401 First line of docstring should be in imperative mood: "Function to collect GHCR packages for a given owner & tag."
.github/scripts/get_package_id.py:35:9: D401 First line of docstring should be in imperative mood: "Method to make API call and return response, given a URL."
.github/scripts/get_package_id.py:85:5: D401 First line of docstring should be in imperative mood: "Function to return a package ID given an image version tag."
.github/scripts/get_package_id.py:109:5: RET505 Unnecessary `else` after `return` statement
.github/scripts/get_package_id.py:114:25: PLR2004 Magic value used in comparison, consider replacing 4 with a constant variable
CPAC/__init__.py:17:1: D205 1 blank line required between summary line and description
CPAC/__main__.py:1:1: D100 Missing docstring in public module
CPAC/__main__.py:51:5: D103 Missing docstring in public function
CPAC/__main__.py:66:5: D103 Missing docstring in public function
CPAC/__main__.py:133:5: D103 Missing docstring in public function
CPAC/__main__.py:139:5: D103 Missing docstring in public function
CPAC/__main__.py:145:5: D103 Missing docstring in public function
CPAC/__main__.py:153:5: D103 Missing docstring in public function
CPAC/__main__.py:161:5: D103 Missing docstring in public function
CPAC/__main__.py:168:5: D103 Missing docstring in public function
CPAC/__main__.py:179:5: D103 Missing docstring in public function
CPAC/__main__.py:213:5: D103 Missing docstring in public function
CPAC/__main__.py:253:5: D103 Missing docstring in public function
CPAC/__main__.py:292:5: D103 Missing docstring in public function
CPAC/__main__.py:329:5: D103 Missing docstring in public function
CPAC/__main__.py:360:5: D103 Missing docstring in public function
CPAC/__main__.py:368:5: D103 Missing docstring in public function
CPAC/__main__.py:376:5: D103 Missing docstring in public function
CPAC/__main__.py:385:5: D103 Missing docstring in public function
CPAC/__main__.py:393:5: D103 Missing docstring in public function
CPAC/__main__.py:399:5: D103 Missing docstring in public function
CPAC/__main__.py:402:20: A002 Argument `object` is shadowing a Python builtin
CPAC/__main__.py:420:5: D103 Missing docstring in public function
CPAC/__main__.py:429:5: D103 Missing docstring in public function
CPAC/__main__.py:437:5: D103 Missing docstring in public function
CPAC/__main__.py:450:5: D103 Missing docstring in public function
CPAC/__main__.py:459:5: D103 Missing docstring in public function
CPAC/__main__.py:472:5: D103 Missing docstring in public function
CPAC/__main__.py:481:5: D103 Missing docstring in public function
CPAC/__main__.py:488:5: D103 Missing docstring in public function
CPAC/__main__.py:503:5: D103 Missing docstring in public function
CPAC/__main__.py:532:5: D103 Missing docstring in public function
CPAC/__main__.py:538:5: D103 Missing docstring in public function
CPAC/__main__.py:546:5: D103 Missing docstring in public function
CPAC/__main__.py:553:5: D103 Missing docstring in public function
CPAC/__main__.py:611:5: D103 Missing docstring in public function
CPAC/__main__.py:617:5: D103 Missing docstring in public function
CPAC/alff/__init__.py:1:1: D104 Missing docstring in public package
CPAC/alff/alff.py:1:1: D100 Missing docstring in public module
CPAC/alff/alff.py:256:5: D103 Missing docstring in public function
CPAC/alff/alff.py:304:5: D103 Missing docstring in public function
CPAC/alff/utils.py:1:1: D100 Missing docstring in public module
CPAC/alff/utils.py:5:5: D401 First line of docstring should be in imperative mood: "Method to return option string for 3dTstat."
CPAC/anat_preproc/__init__.py:1:1: D104 Missing docstring in public package
CPAC/anat_preproc/anat_preproc.py:1:1: D100 Missing docstring in public module
CPAC/anat_preproc/anat_preproc.py:41:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:198:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:240:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:514:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:706:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:800:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:847:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/anat_preproc.py:896:12: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:15: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:20: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:22: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:26: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:39: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:44: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:64: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:67: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:81: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:87: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:105: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:896:113: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:12: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:16: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:28: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:33: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:50: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:53: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:66: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:76: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:907:82: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:931:15: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:931:35: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:931:40: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:26: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:29: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:31: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:34: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:54: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:57: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:78: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:98: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:101: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:122: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:963:125: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:989:18: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:989:24: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:989:45: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:989:54: RUF003 Comment contains ambiguous ` ` (NO-BREAK SPACE). Did you mean ` ` (SPACE)?
CPAC/anat_preproc/anat_preproc.py:1023:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1159:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1340:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1405:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1445:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1493:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1547:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1597:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1646:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1675:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1706:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1739:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1775:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1792:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1811:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1828:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1847:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1864:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1888:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1905:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1928:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1949:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1974:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:1998:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2021:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2047:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2069:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2097:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2129:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/anat_preproc.py:2182:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2213:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2249:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2277:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2315:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2356:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2397:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2417:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2441:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2455:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2471:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2485:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2501:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2515:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2533:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2547:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2569:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2615:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2647:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2684:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2742:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2885:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:2935:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:3056:5: D103 Missing docstring in public function
CPAC/anat_preproc/anat_preproc.py:3141:5: D103 Missing docstring in public function
CPAC/anat_preproc/ants.py:3:1: D205 1 blank line required between summary line and description
CPAC/anat_preproc/ants.py:66:5: PLR0913 Too many arguments in function definition (15 > 10)
CPAC/anat_preproc/ants.py:83:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/ants.py:83:5: D401 First line of docstring should be in imperative mood: "A Nipype implementation of the official ANTs' ``antsBrainExtraction.sh``"
CPAC/anat_preproc/ants.py:457:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/ants.py:457:5: D401 First line of docstring should be in imperative mood: "Implements supersteps 6 and 7 of ``antsBrainExtraction.sh``,"
CPAC/anat_preproc/ants.py:732:9: E741 Ambiguous variable name: `l`
CPAC/anat_preproc/ants.py:743:5: D401 First line of docstring should be in imperative mood: "Ensures the mask headers make sense and match those of the T1w."
CPAC/anat_preproc/lesion_preproc.py:1:1: D100 Missing docstring in public module
CPAC/anat_preproc/lesion_preproc.py:10:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/lesion_preproc.py:41:5: RET505 Unnecessary `else` after `return` statement
CPAC/anat_preproc/lesion_preproc.py:46:5: D205 1 blank line required between summary line and description
CPAC/anat_preproc/lesion_preproc.py:46:5: D401 First line of docstring should be in imperative mood: "The main purpose of this workflow is to process lesions masks."
CPAC/anat_preproc/tests/__init__.py:1:1: D104 Missing docstring in public package
CPAC/anat_preproc/tests/test_anat_preproc.py:1:1: D100 Missing docstring in public module
CPAC/anat_preproc/tests/test_anat_preproc.py:3:1: F403 `from nose.tools import *` used; unable to detect undefined names
CPAC/anat_preproc/tests/test_anat_preproc.py:10:7: D101 Missing docstring in public class
CPAC/anat_preproc/tests/test_anat_preproc.py:59:9: D401 First line of docstring should be in imperative mood: "Deletes the workflow object."
CPAC/anat_preproc/tests/test_anat_preproc.py:93:33: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/anat_preproc/tests/test_anat_preproc.py:95:9: E722 Do not use bare `except`
CPAC/anat_preproc/tests/test_anat_preproc.py:202:21: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
CPAC/anat_preproc/tests/test_anat_preproc.py:203:38: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/anat_preproc/tests/test_anat_preproc.py:245:41: PLR2004 Magic value used in comparison, consider replacing 0.95 with a constant variable
CPAC/anat_preproc/tests/test_anat_preproc.py:272:41: PLR2004 Magic value used in comparison, consider replacing 0.97 with a constant variable
CPAC/anat_preproc/utils.py:1:1: D100 Missing docstring in public module
CPAC/anat_preproc/utils.py:7:5: D103 Missing docstring in public function
CPAC/anat_preproc/utils.py:8:15: F821 Undefined name `os`
CPAC/anat_preproc/utils.py:8:28: F821 Undefined name `os`
CPAC/anat_preproc/utils.py:80:9: F821 Undefined name `loadtxt`
CPAC/anat_preproc/utils.py:82:10: F821 Undefined name `matrix`
CPAC/anat_preproc/utils.py:83:10: F821 Undefined name `matrix`
CPAC/anat_preproc/utils.py:84:10: F821 Undefined name `matrix`
CPAC/anat_preproc/utils.py:86:12: F821 Undefined name `linalg`
CPAC/anat_preproc/utils.py:92:17: F821 Undefined name `linalg`
CPAC/anat_preproc/utils.py:93:17: F821 Undefined name `multiply`
CPAC/anat_preproc/utils.py:94:17: F821 Undefined name `linalg`
CPAC/anat_preproc/utils.py:95:11: F821 Undefined name `cross`
CPAC/anat_preproc/utils.py:96:11: F821 Undefined name `mat`
CPAC/anat_preproc/utils.py:96:15: F821 Undefined name `zeros`
CPAC/anat_preproc/utils.py:102:17: F821 Undefined name `linalg`
CPAC/anat_preproc/utils.py:103:17: F821 Undefined name `multiply`
CPAC/anat_preproc/utils.py:104:17: F821 Undefined name `linalg`
CPAC/anat_preproc/utils.py:105:11: F821 Undefined name `cross`
CPAC/anat_preproc/utils.py:106:11: F821 Undefined name `mat`
CPAC/anat_preproc/utils.py:106:15: F821 Undefined name `zeros`
CPAC/anat_preproc/utils.py:110:10: F821 Undefined name `matrix`
CPAC/anat_preproc/utils.py:110:17: F821 Undefined name `eye`
CPAC/anat_preproc/utils.py:114:10: F821 Undefined name `matrix`
CPAC/anat_preproc/utils.py:114:17: F821 Undefined name `eye`
CPAC/anat_preproc/utils.py:127:5: F821 Undefined name `savetxt`
CPAC/anat_preproc/utils.py:133:5: D401 First line of docstring should be in imperative mood: "Function to return various hemisphere-specific FreeSurfer outputs."
CPAC/anat_preproc/utils.py:163:9: D401 First line of docstring should be in imperative mood: "Returns a function interface for split_hemi."
CPAC/anat_preproc/utils.py:205:5: PLR0913 Too many arguments in function definition (21 > 10)
CPAC/anat_preproc/utils.py:228:5: D401 First line of docstring should be in imperative mood: "Method to return option string for 3dSkullStrip."
CPAC/anat_preproc/utils.py:386:5: D401 First line of docstring should be in imperative mood: "Method to convert files from mgz to nifti format."
CPAC/anat_preproc/utils.py:419:5: D103 Missing docstring in public function
CPAC/anat_preproc/utils.py:431:5: D103 Missing docstring in public function
CPAC/anat_preproc/utils.py:445:5: D103 Missing docstring in public function
CPAC/anat_preproc/utils.py:466:1: E402 Module level import not at top of file
CPAC/anat_preproc/utils.py:467:1: E402 Module level import not at top of file
CPAC/anat_preproc/utils.py:468:1: E402 Module level import not at top of file
CPAC/anat_preproc/utils.py:473:7: D101 Missing docstring in public class
CPAC/anat_preproc/utils.py:490:7: D101 Missing docstring in public class
CPAC/anat_preproc/utils.py:495:5: D205 1 blank line required between summary line and description
CPAC/aroma/__init__.py:1:1: D104 Missing docstring in public package
CPAC/aroma/aroma.py:1:1: D100 Missing docstring in public module
CPAC/aroma/aroma.py:9:5: D205 1 blank line required between summary line and description
CPAC/aroma/aroma_test.py:3:1: D205 1 blank line required between summary line and description
CPAC/aroma/aroma_test.py:3:1: D404 First word of the docstring should not be "This"
CPAC/aroma/aroma_test.py:36:5: D103 Missing docstring in public function
CPAC/aroma/aroma_test.py:101:5: RET505 Unnecessary `else` after `return` statement
CPAC/connectome/__init__.py:1:1: D104 Missing docstring in public package
CPAC/connectome/connectivity_matrix.py:40:5: D401 First line of docstring should be in imperative mood: "Helper function to create connectome file filename."
CPAC/connectome/connectivity_matrix.py:64:5: D401 First line of docstring should be in imperative mood: "Helper function to get tool's method string."
CPAC/connectome/connectivity_matrix.py:96:5: D401 First line of docstring should be in imperative mood: "Function to compute a connectome matrix using Nilearn."
CPAC/connectome/connectivity_matrix.py:140:5: D103 Missing docstring in public function
CPAC/connectome/connectivity_matrix.py:213:5: D103 Missing docstring in public function
CPAC/cwas/__init__.py:1:1: D104 Missing docstring in public package
CPAC/cwas/cwas.py:1:1: D100 Missing docstring in public module
CPAC/cwas/cwas.py:18:5: D205 1 blank line required between summary line and description
CPAC/cwas/cwas.py:18:5: D401 First line of docstring should be in imperative mood: "Creates a joint mask (intersection) common to all the subjects in a provided list"
CPAC/cwas/cwas.py:44:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:50:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:64:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:72:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:89:5: D401 First line of docstring should be in imperative mood: "Performs CWAS for a group of subjects."
CPAC/cwas/cwas.py:123:5: E722 Do not use bare `except`
CPAC/cwas/cwas.py:168:34: PLR2004 Magic value used in comparison, consider replacing 2 with a constant variable
CPAC/cwas/cwas.py:194:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:200:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:207:5: D103 Missing docstring in public function
CPAC/cwas/cwas.py:247:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:1:1: D100 Missing docstring in public module
CPAC/cwas/mdmr.py:4:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:11:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:16:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:19:5: E741 Ambiguous variable name: `I`
CPAC/cwas/mdmr.py:25:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:32:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:38:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:43:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:53:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:55:5: E741 Ambiguous variable name: `I`
CPAC/cwas/mdmr.py:65:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:73:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:79:5: D103 Missing docstring in public function
CPAC/cwas/mdmr.py:99:37: NPY002 Replace legacy `np.random.permutation` call with `np.random.Generator`
CPAC/cwas/pipeline.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/__init__.py:1:1: D104 Missing docstring in public package
CPAC/cwas/tests/features/steps/base_cwas.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/features/steps/base_cwas.py:5:5: D205 1 blank line required between summary line and description
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:1:1: F403 `from base_cwas import *` used; unable to detect undefined names
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:6:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:7:5: F405 `importr` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:9:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:10:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:10:22: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:11:20: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:15:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:16:12: F405 `nib` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:17:20: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:21:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:22:17: F405 `nib` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:44:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:44:5: F811 Redefinition of unused `step` from line 6
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:47:21: F405 `calc_subdists` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:51:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:51:5: F811 Redefinition of unused `step` from line 44
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:54:25: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:55:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:57:13: F405 `custom_corrcoef` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:61:14: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:62:14: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:63:17: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:68:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:68:5: F811 Redefinition of unused `step` from line 51
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:69:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:70:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:74:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:74:5: F811 Redefinition of unused `step` from line 68
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:84:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:84:21: F405 `custom_corrcoef` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:85:21: PLR2004 Magic value used in comparison, consider replacing 0.99 with a constant variable
CPAC/cwas/tests/features/steps/step_conn-dists_connectir.py:86:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:1:1: F403 `from base_cwas import *` used; unable to detect undefined names
CPAC/cwas/tests/features/steps/step_dists.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/features/steps/step_dists.py:6:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_dists.py:10:21: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:15:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_dists.py:15:5: F811 Redefinition of unused `step` from line 6
CPAC/cwas/tests/features/steps/step_dists.py:16:21: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:18:28: F405 `compute_distances` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:22:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_dists.py:22:5: F811 Redefinition of unused `step` from line 15
CPAC/cwas/tests/features/steps/step_dists.py:23:25: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:25:36: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:29:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_dists.py:29:5: F811 Redefinition of unused `step` from line 22
CPAC/cwas/tests/features/steps/step_dists.py:30:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_dists.py:31:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:1:1: F403 `from base_cwas import *` used; unable to detect undefined names
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:6:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:8:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:8:21: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:9:5: F405 `importr` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:10:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:10:22: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:11:20: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:15:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:16:25: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:17:9: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:22:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:23:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:23:22: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:25:17: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:26:9: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:27:18: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:27:27: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:32:13: F405 `op` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:33:13: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:33:22: F405 `robjects` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:38:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:38:5: F811 Redefinition of unused `step` from line 6
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:43:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:43:5: F811 Redefinition of unused `step` from line 38
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:44:26: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:49:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:49:5: F811 Redefinition of unused `step` from line 43
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:51:30: F405 `calc_mdmrs` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:57:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:57:5: F811 Redefinition of unused `step` from line 49
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:59:26: F405 `mdmr` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:71:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:71:5: F811 Redefinition of unused `step` from line 57
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:72:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:73:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:77:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:77:5: F811 Redefinition of unused `step` from line 71
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:78:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:79:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:83:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:83:5: F811 Redefinition of unused `step` from line 77
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:84:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:85:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:89:5: D103 Missing docstring in public function
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:89:5: F811 Redefinition of unused `step` from line 83
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:90:12: F405 `np` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:91:5: F405 `assert_that` may be undefined, or defined from star imports
CPAC/cwas/tests/features/steps/step_mdmrs_connectir.py:91:23: F405 `greater_than` may be undefined, or defined from star imports
CPAC/cwas/tests/test_cwas.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/test_cwas.py:7:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_cwas.py:13:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_cwas.py:20:5: D205 1 blank line required between summary line and description
CPAC/cwas/tests/test_cwas.py:38:9: D102 Missing docstring in public method
CPAC/cwas/tests/test_cwas.py:45:9: D102 Missing docstring in public method
CPAC/cwas/tests/test_cwas.py:85:17: E741 Ambiguous variable name: `l`
CPAC/cwas/tests/test_cwas.py:120:9: D205 1 blank line required between summary line and description
CPAC/cwas/tests/test_cwas.py:120:9: D401 First line of docstring should be in imperative mood: "This runs distances and MDMR with connectir."
CPAC/cwas/tests/test_cwas.py:120:9: D404 First word of the docstring should not be "This"
CPAC/cwas/tests/test_cwas.py:159:9: D401 First line of docstring should be in imperative mood: "This will compare the output from the CPAC python vs the R connectir."
CPAC/cwas/tests/test_cwas.py:159:9: D404 First word of the docstring should not be "This"
CPAC/cwas/tests/test_cwas.py:242:60: PLR2004 Magic value used in comparison, consider replacing 0.99 with a constant variable
CPAC/cwas/tests/test_cwas.py:245:60: PLR2004 Magic value used in comparison, consider replacing 0.99 with a constant variable
CPAC/cwas/tests/test_cwas.py:248:54: PLR2004 Magic value used in comparison, consider replacing 0.01 with a constant variable
CPAC/cwas/tests/test_cwas.py:251:54: PLR2004 Magic value used in comparison, consider replacing 0.05 with a constant variable
CPAC/cwas/tests/test_cwas.py:255:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_cwas.py:293:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_cwas.py:305:47: E741 Ambiguous variable name: `l`
CPAC/cwas/tests/test_cwas.py:309:12: F821 Undefined name `nb`
CPAC/cwas/tests/test_cwas.py:313:9: F821 Undefined name `nb`
CPAC/cwas/tests/test_cwas.py:334:14: F821 Undefined name `robjects`
CPAC/cwas/tests/test_cwas.py:335:17: F821 Undefined name `dmats`
CPAC/cwas/tests/test_mdmr_cython.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/test_mdmr_cython.py:7:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_pipeline_cwas.py:1:1: D100 Missing docstring in public module
CPAC/cwas/tests/test_pipeline_cwas.py:14:5: D103 Missing docstring in public function
CPAC/cwas/tests/test_pipeline_cwas.py:22:5: E722 Do not use bare `except`
CPAC/cwas/tests/test_pipeline_cwas.py:37:26: PLR2004 Magic value used in comparison, consider replacing 2 with a constant variable
CPAC/distortion_correction/__init__.py:1:1: D104 Missing docstring in public package
CPAC/distortion_correction/distortion_correction.py:1:1: D100 Missing docstring in public module
CPAC/distortion_correction/distortion_correction.py:41:5: D103 Missing docstring in public function
CPAC/distortion_correction/distortion_correction.py:65:5: D205 1 blank line required between summary line and description
CPAC/distortion_correction/distortion_correction.py:146:23: F823 Local variable `afni` referenced before assignment
CPAC/distortion_correction/distortion_correction.py:274:5: D205 1 blank line required between summary line and description
CPAC/distortion_correction/distortion_correction.py:334:5: D103 Missing docstring in public function
CPAC/distortion_correction/distortion_correction.py:353:5: D103 Missing docstring in public function
CPAC/distortion_correction/distortion_correction.py:387:5: D205 1 blank line required between summary line and description
CPAC/distortion_correction/distortion_correction.py:575:5: PLR0915 Too many statements (137 > 100)
CPAC/distortion_correction/distortion_correction.py:576:5: D205 1 blank line required between summary line and description
CPAC/distortion_correction/tests/__init__.py:1:1: D104 Missing docstring in public package
CPAC/distortion_correction/tests/test_distortion_correction.py:1:1: D100 Missing docstring in public module
CPAC/distortion_correction/tests/test_distortion_correction.py:18:5: D401 First line of docstring should be in imperative mood: "Created on Thu Nov  9 10:36:37 2017."
CPAC/distortion_correction/tests/test_distortion_correction.py:101:5: RET505 Unnecessary `else` after `return` statement
CPAC/distortion_correction/tests/test_distortion_correction.py:106:5: D103 Missing docstring in public function
CPAC/distortion_correction/tests/test_distortion_correction.py:125:5: D103 Missing docstring in public function
CPAC/distortion_correction/tests/test_distortion_correction.py:141:20: F821 Undefined name `create_func_preproc`
CPAC/distortion_correction/tests/test_distortion_correction.py:148:12: F821 Undefined name `blip_distcor_wf`
CPAC/distortion_correction/tests/test_distortion_correction.py:166:5: D103 Missing docstring in public function
CPAC/distortion_correction/tests/test_distortion_correction.py:181:20: F821 Undefined name `create_func_preproc`
CPAC/distortion_correction/tests/test_distortion_correction.py:188:12: F821 Undefined name `blip_distcor_wf`
CPAC/distortion_correction/utils.py:1:1: D100 Missing docstring in public module
CPAC/distortion_correction/utils.py:16:5: D103 Missing docstring in public function
CPAC/distortion_correction/utils.py:38:5: D103 Missing docstring in public function
CPAC/distortion_correction/utils.py:52:16: F821 Undefined name `jac_out`
CPAC/distortion_correction/utils.py:59:5: D103 Missing docstring in public function
CPAC/distortion_correction/utils.py:247:5: D205 1 blank line required between summary line and description
CPAC/distortion_correction/utils.py:286:5: D103 Missing docstring in public function
CPAC/distortion_correction/utils.py:305:5: D103 Missing docstring in public function
CPAC/distortion_correction/utils.py:363:5: D103 Missing docstring in public function
CPAC/easy_thresh/__init__.py:1:1: D104 Missing docstring in public package
CPAC/easy_thresh/easy_thresh.py:1:1: D100 Missing docstring in public module
CPAC/easy_thresh/easy_thresh.py:13:5: D205 1 blank line required between summary line and description
CPAC/easy_thresh/easy_thresh.py:372:5: D103 Missing docstring in public function
CPAC/easy_thresh/easy_thresh.py:415:5: D205 1 blank line required between summary line and description
CPAC/easy_thresh/easy_thresh.py:415:5: D401 First line of docstring should be in imperative mood: "Method to call fsl fslcpgeom command to copy"
CPAC/easy_thresh/easy_thresh.py:451:5: D205 1 blank line required between summary line and description
CPAC/easy_thresh/easy_thresh.py:451:5: D401 First line of docstring should be in imperative mood: "Method to get the standard brain image from FSL"
CPAC/easy_thresh/easy_thresh.py:488:5: D205 1 blank line required between summary line and description
CPAC/easy_thresh/easy_thresh.py:488:5: D401 First line of docstring should be in imperative mood: "Simple method to return tuple of z_threhsold"
CPAC/func_preproc/func_ingress.py:1:1: D100 Missing docstring in public module
CPAC/func_preproc/func_ingress.py:24:5: D103 Missing docstring in public function
CPAC/func_preproc/func_motion.py:132:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_motion.py:150:34: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/func_preproc/func_motion.py:152:36: PLR2004 Magic value used in comparison, consider replacing 4 with a constant variable
CPAC/func_preproc/func_motion.py:163:27: PLR2004 Magic value used in comparison, consider replacing 40 with a constant variable
CPAC/func_preproc/func_motion.py:222:5: D103 Missing docstring in public function
CPAC/func_preproc/func_motion.py:241:5: D103 Missing docstring in public function
CPAC/func_preproc/func_motion.py:285:5: D103 Missing docstring in public function
CPAC/func_preproc/func_motion.py:307:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:36:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:44:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:178:5: D401 First line of docstring should be in imperative mood: "Reference `DCAN lab BOLD mask <https://github.com/DCAN-Labs/DCAN-HCP/blob/master/fMRIVolume/scripts/DistortionCorrectionAndEPIToT1wReg_FLIRTBBRAndFreeSurferBBRbased.sh>`_."
CPAC/func_preproc/func_preproc.py:380:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:445:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_preproc.py:445:5: D401 First line of docstring should be in imperative mood: "Method to get the first and the last slice for"
CPAC/func_preproc/func_preproc.py:482:22: PLR2004 Magic value used in comparison, consider replacing 4 with a constant variable
CPAC/func_preproc/func_preproc.py:507:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:546:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:569:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:604:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:646:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:700:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:739:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:764:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:943:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_preproc.py:1141:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:1285:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_preproc.py:1378:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_preproc.py:1458:5: D205 1 blank line required between summary line and description
CPAC/func_preproc/func_preproc.py:1594:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:1625:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:1648:5: D103 Missing docstring in public function
CPAC/func_preproc/func_preproc.py:1673:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:1:1: D100 Missing docstring in public module
CPAC/func_preproc/utils.py:10:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:20:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:45:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:53:20: F821 Undefined name `os`
CPAC/func_preproc/utils.py:54:13: F821 Undefined name `os`
CPAC/func_preproc/utils.py:55:13: F821 Undefined name `os`
CPAC/func_preproc/utils.py:68:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:69:16: F821 Undefined name `os`
CPAC/func_preproc/utils.py:70:9: F821 Undefined name `os`
CPAC/func_preproc/utils.py:70:22: F821 Undefined name `os`
CPAC/func_preproc/utils.py:92:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:97:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:102:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:102:5: F811 Redefinition of unused `degrees_to_mm` from line 92
CPAC/func_preproc/utils.py:107:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:107:5: F811 Redefinition of unused `mm_to_degrees` from line 97
CPAC/func_preproc/utils.py:112:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:112:5: F811 Redefinition of unused `degrees_to_mm` from line 102
CPAC/func_preproc/utils.py:117:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:117:5: F811 Redefinition of unused `mm_to_degrees` from line 107
CPAC/func_preproc/utils.py:122:5: D103 Missing docstring in public function
CPAC/func_preproc/utils.py:203:21: F821 Undefined name `os`
CPAC/func_preproc/utils.py:203:34: F821 Undefined name `os`
CPAC/func_preproc/utils.py:204:19: F821 Undefined name `os`
CPAC/func_preproc/utils.py:204:32: F821 Undefined name `os`
CPAC/func_preproc/utils.py:232:30: F821 Undefined name `os`
CPAC/func_preproc/utils.py:233:9: F821 Undefined name `os`
CPAC/func_preproc/utils.py:233:47: F821 Undefined name `os`
CPAC/generate_motion_statistics/generate_motion_statistics.py:38:5: D205 1 blank line required between summary line and description
CPAC/generate_motion_statistics/generate_motion_statistics.py:38:5: D401 First line of docstring should be in imperative mood: "The main purpose of this workflow is to get various statistical measures"
CPAC/generate_motion_statistics/generate_motion_statistics.py:359:5: D401 First line of docstring should be in imperative mood: "Method to calculate Framewise Displacement (FD)  as per Power et al., 2012."
CPAC/generate_motion_statistics/generate_motion_statistics.py:403:25: F821 Undefined name `affine`
CPAC/generate_motion_statistics/generate_motion_statistics.py:403:35: F821 Undefined name `rms`
CPAC/generate_motion_statistics/generate_motion_statistics.py:406:5: D401 First line of docstring should be in imperative mood: "Method to calculate framewise displacement as per Jenkinson et al. 2002."
CPAC/generate_motion_statistics/generate_motion_statistics.py:524:5: D401 First line of docstring should be in imperative mood: "Method to calculate all the movement parameters."
CPAC/generate_motion_statistics/generate_motion_statistics.py:589:63: PLR2004 Magic value used in comparison, consider replacing 0.1 with a constant variable
CPAC/generate_motion_statistics/generate_motion_statistics.py:624:31: E721 Do not compare types, use `isinstance()`
CPAC/generate_motion_statistics/generate_motion_statistics.py:633:5: D401 First line of docstring should be in imperative mood: "Method to generate Power parameters for scrubbing."
CPAC/generate_motion_statistics/generate_motion_statistics.py:701:31: E721 Do not compare types, use `isinstance()`
CPAC/generate_motion_statistics/generate_motion_statistics.py:707:5: D103 Missing docstring in public function
CPAC/generate_motion_statistics/generate_motion_statistics.py:715:7: D101 Missing docstring in public class
CPAC/generate_motion_statistics/generate_motion_statistics.py:740:16: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
CPAC/generate_motion_statistics/generate_motion_statistics.py:756:7: D101 Missing docstring in public class
CPAC/generate_motion_statistics/generate_motion_statistics.py:760:7: D101 Missing docstring in public class
CPAC/generate_motion_statistics/generate_motion_statistics.py:767:5: D401 First line of docstring should be in imperative mood: "Method to calculate DVARS as per power's method."
CPAC/generate_motion_statistics/generate_motion_statistics.py:808:5: D401 First line of docstring should be in imperative mood: "Method to append all the motion and power parameters into 2 files."
CPAC/generate_motion_statistics/generate_motion_statistics.py:852:42: PLR2004 Magic value used in comparison, consider replacing 5 with a constant variable
CPAC/generate_motion_statistics/generate_motion_statistics.py:862:42: PLR2004 Magic value used in comparison, consider replacing 4 with a constant variable
CPAC/generate_motion_statistics/test/test_dvars.py:1:1: D100 Missing docstring in public module
CPAC/generate_motion_statistics/test/test_dvars.py:8:1: NPY002 Replace legacy `np.random.seed` call with `np.random.Generator`
CPAC/generate_motion_statistics/test/test_dvars.py:11:5: D103 Missing docstring in public function
CPAC/generate_motion_statistics/test/test_dvars.py:14:16: NPY002 Replace legacy `np.random.uniform` call with `np.random.Generator`
CPAC/generate_motion_statistics/utils.py:112:5: D205 1 blank line required between summary line and description
CPAC/group_analysis/__init__.py:1:1: D104 Missing docstring in public package
CPAC/group_analysis/group_analysis.py:1:1: D100 Missing docstring in public module
CPAC/group_analysis/group_analysis.py:9:5: D205 1 blank line required between summary line and description
CPAC/group_analysis/group_analysis.py:9:5: D401 First line of docstring should be in imperative mood: "Method to create operation string"
CPAC/group_analysis/group_analysis.py:36:5: E722 Do not use bare `except`
CPAC/group_analysis/group_analysis.py:41:5: D205 1 blank line required between summary line and description
CPAC/group_analysis/group_analysis.py:66:5: D205 1 blank line required between summary line and description
CPAC/group_analysis/group_analysis.py:456:5: PLR0913 Too many arguments in function definition (12 > 10)
CPAC/group_analysis/group_analysis.py:470:5: D205 1 blank line required between summary line and description
CPAC/image_utils/__init__.py:1:1: D104 Missing docstring in public package
CPAC/image_utils/spatial_smoothing.py:1:1: D100 Missing docstring in public module
CPAC/image_utils/spatial_smoothing.py:24:5: D205 1 blank line required between summary line and description
CPAC/image_utils/spatial_smoothing.py:42:5: D103 Missing docstring in public function
CPAC/image_utils/statistical_transforms.py:1:1: D100 Missing docstring in public module
CPAC/image_utils/statistical_transforms.py:25:5: D103 Missing docstring in public function
CPAC/image_utils/statistical_transforms.py:48:5: D103 Missing docstring in public function
CPAC/image_utils/tests/__init__.py:1:1: D104 Missing docstring in public package
CPAC/image_utils/tests/test_smooth.py:1:1: D100 Missing docstring in public module
CPAC/image_utils/tests/test_smooth.py:12:5: D103 Missing docstring in public function
CPAC/image_utils/tests/test_smooth.py:68:84: PLR2004 Magic value used in comparison, consider replacing 0.99 with a constant variable
CPAC/image_utils/tests/test_smooth.py:74:5: D103 Missing docstring in public function
CPAC/image_utils/tests/test_smooth.py:143:60: PLR2004 Magic value used in comparison, consider replacing 0.99 with a constant variable
CPAC/info.py:35:1: D205 1 blank line required between summary line and description
CPAC/info.py:35:1: D404 First word of the docstring should not be "This"
CPAC/isc/__init__.py:1:1: D104 Missing docstring in public package
CPAC/isc/isc.py:1:1: D100 Missing docstring in public module
CPAC/isc/isc.py:7:5: D103 Missing docstring in public function
CPAC/isc/isc.py:8:22: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/isc/isc.py:44:5: D103 Missing docstring in public function
CPAC/isc/isc.py:48:5: D103 Missing docstring in public function
CPAC/isc/isfc.py:1:1: D100 Missing docstring in public module
CPAC/isc/isfc.py:7:5: D103 Missing docstring in public function
CPAC/isc/isfc.py:8:22: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/isc/isfc.py:46:5: D103 Missing docstring in public function
CPAC/isc/isfc.py:50:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:1:1: D100 Missing docstring in public module
CPAC/isc/pipeline.py:29:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:52:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:105:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:128:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:142:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:150:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:159:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:173:5: D103 Missing docstring in public function
CPAC/isc/pipeline.py:181:5: D103 Missing docstring in public function
CPAC/isc/tests/__init__.py:1:1: D104 Missing docstring in public package
CPAC/isc/tests/test_pipeline_isc.py:1:1: D100 Missing docstring in public module
CPAC/isc/tests/test_pipeline_isc.py:8:5: D103 Missing docstring in public function
CPAC/isc/tests/test_pipeline_isc.py:11:29: NPY002 Replace legacy `np.random.uniform` call with `np.random.Generator`
CPAC/isc/tests/test_pipeline_isc.py:19:5: D103 Missing docstring in public function
CPAC/isc/tests/test_pipeline_isc.py:22:29: NPY002 Replace legacy `np.random.uniform` call with `np.random.Generator`
CPAC/isc/utils.py:1:1: D100 Missing docstring in public module
CPAC/isc/utils.py:7:5: D103 Missing docstring in public function
CPAC/isc/utils.py:13:5: D103 Missing docstring in public function
CPAC/isc/utils.py:32:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_preproc.py:1:1: D100 Missing docstring in public module
CPAC/longitudinal_pipeline/longitudinal_preproc.py:16:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_preproc.py:32:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_preproc.py:59:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_preproc.py:66:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_preproc.py:112:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_preproc.py:112:5: D414 Section has no content ("Returns")
CPAC/longitudinal_pipeline/longitudinal_preproc.py:152:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_preproc.py:321:5: PLR0913 Too many arguments in function definition (11 > 10)
CPAC/longitudinal_pipeline/longitudinal_preproc.py:334:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_preproc.py:402:5: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
CPAC/longitudinal_pipeline/longitudinal_preproc.py:424:9: F821 Undefined name `warnings`
CPAC/longitudinal_pipeline/longitudinal_preproc.py:562:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_preproc.py:562:5: D414 Section has no content ("Returns")
CPAC/longitudinal_pipeline/longitudinal_workflow.py:1:1: D100 Missing docstring in public module
CPAC/longitudinal_pipeline/longitudinal_workflow.py:60:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:83:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_workflow.py:83:5: D414 Section has no content ("Returns")
CPAC/longitudinal_pipeline/longitudinal_workflow.py:100:5: E722 Do not use bare `except`
CPAC/longitudinal_pipeline/longitudinal_workflow.py:163:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_workflow.py:210:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:220:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:239:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:266:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:337:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:393:5: PLR0915 Too many statements (109 > 100)
CPAC/longitudinal_pipeline/longitudinal_workflow.py:394:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_workflow.py:690:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_workflow.py:755:50: F821 Undefined name `connect_func_ingress`
CPAC/longitudinal_pipeline/longitudinal_workflow.py:766:36: F821 Undefined name `connect_func_init`
CPAC/longitudinal_pipeline/longitudinal_workflow.py:771:36: F821 Undefined name `connect_func_preproc`
CPAC/longitudinal_pipeline/longitudinal_workflow.py:776:36: F821 Undefined name `connect_distortion_correction`
CPAC/longitudinal_pipeline/longitudinal_workflow.py:801:5: D205 1 blank line required between summary line and description
CPAC/longitudinal_pipeline/longitudinal_workflow.py:832:5: D103 Missing docstring in public function
CPAC/longitudinal_pipeline/longitudinal_workflow.py:889:17: PLW2901 `for` loop variable `strat` overwritten by assignment target
CPAC/longitudinal_pipeline/longitudinal_workflow.py:969:21: PLW2901 `for` loop variable `strat` overwritten by assignment target
CPAC/longitudinal_pipeline/longitudinal_workflow.py:1125:5: D205 1 blank line required between summary line and description
CPAC/median_angle/median_angle.py:1:1: D100 Missing docstring in public module
CPAC/median_angle/median_angle.py:7:5: D205 1 blank line required between summary line and description
CPAC/median_angle/median_angle.py:7:5: D401 First line of docstring should be in imperative mood: "Performs median angle correction on fMRI data.  Median angle correction algorithm"
CPAC/median_angle/median_angle.py:92:5: D401 First line of docstring should be in imperative mood: "Calculates median angle parameters of a subject."
CPAC/median_angle/median_angle.py:135:5: D205 1 blank line required between summary line and description
CPAC/median_angle/median_angle.py:135:5: D401 First line of docstring should be in imperative mood: "Calculates a target angle based on median angle parameters of"
CPAC/network_centrality/__init__.py:1:1: D104 Missing docstring in public package
CPAC/network_centrality/network_centrality.py:1:1: D100 Missing docstring in public module
CPAC/network_centrality/pipeline.py:1:1: D100 Missing docstring in public module
CPAC/network_centrality/pipeline.py:39:5: D400 First line should end with a period
CPAC/network_centrality/tests/test_network_centrality.py:1:1: D100 Missing docstring in public module
CPAC/network_centrality/tests/test_network_centrality.py:51:5: D205 1 blank line required between summary line and description
CPAC/network_centrality/utils.py:1:1: D100 Missing docstring in public module
CPAC/network_centrality/utils.py:31:5: D401 First line of docstring should be in imperative mood: "Method to calculate correlation threshold from p_value."
CPAC/network_centrality/utils.py:50:23: ICN001 `nibabel` should be imported as `nib`
CPAC/network_centrality/utils.py:81:5: D401 First line of docstring should be in imperative mood: "Function to actually do the list merging."
CPAC/network_centrality/utils.py:261:29: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/network_centrality/utils.py:271:33: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/network_centrality/utils.py:273:34: PLR2004 Magic value used in comparison, consider replacing 3 with a constant variable
CPAC/network_centrality/utils.py:323:8: E721 Do not compare types, use `isinstance()`
CPAC/network_centrality/utils.py:325:8: E721 Do not compare types, use `isinstance()`
CPAC/network_centrality/utils.py:332:10: E721 Do not compare types, use `isinstance()`
CPAC/network_centrality/utils.py:390:5: D205 1 blank line required between summary line and description
CPAC/network_centrality/utils.py:411:5: D205 1 blank line required between summary line and description
CPAC/nuisance/__init__.py:1:1: D104 Missing docstring in public package
CPAC/nuisance/bandpass.py:1:1: D100 Missing docstring in public module
CPAC/nuisance/bandpass.py:8:5: D103 Missing docstring in public function
CPAC/nuisance/bandpass.py:48:5: D401 First line of docstring should be in imperative mood: "Performs ideal bandpass filtering on each voxel time-series."
CPAC/nuisance/bandpass.py:76:28: PLR2004 Magic value used in comparison, consider replacing 20.0 with a constant variable
CPAC/nuisance/nuisance.py:1:1: D100 Missing docstring in public module
CPAC/nuisance/nuisance.py:63:5: D205 1 blank line required between summary line and description
CPAC/nuisance/nuisance.py:63:5: D401 First line of docstring should be in imperative mood: "Function to handle selecting appropriate blocks based on"
CPAC/nuisance/nuisance.py:106:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:184:5: PLR0913 Too many arguments in function definition (11 > 10)
CPAC/nuisance/nuisance.py:184:5: PLR0915 Too many statements (119 > 100)
CPAC/nuisance/nuisance.py:197:5: D205 1 blank line required between summary line and description
CPAC/nuisance/nuisance.py:242:5: E722 Do not use bare `except`
CPAC/nuisance/nuisance.py:248:38: PLR2004 Magic value used in comparison, consider replacing 4 with a constant variable
CPAC/nuisance/nuisance.py:248:71: PLR2004 Magic value used in comparison, consider replacing 2 with a constant variable
CPAC/nuisance/nuisance.py:296:16: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:350:20: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:395:13: E722 Do not use bare `except`
CPAC/nuisance/nuisance.py:429:13: E722 Do not use bare `except`
CPAC/nuisance/nuisance.py:506:5: PLR0912 Too many branches (64 > 50)
CPAC/nuisance/nuisance.py:506:5: PLR0915 Too many statements (219 > 100)
CPAC/nuisance/nuisance.py:514:5: D205 1 blank line required between summary line and description
CPAC/nuisance/nuisance.py:973:16: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:1103:16: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:1142:16: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:1263:24: E721 Do not compare types, use `isinstance()`
CPAC/nuisance/nuisance.py:1643:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:1810:5: PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
CPAC/nuisance/nuisance.py:1824:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:1956:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2003:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2074:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2127:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2198:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2235:5: D103 Missing docstring in public function
CPAC/nuisance/nuisance.py:2274…
- Remove unused symbols
- Add missing symbols to `__all__`
@shnizzedy shnizzedy mentioned this pull request Jan 30, 2024
15 tasks
@shnizzedy shnizzedy self-assigned this Feb 5, 2024
shnizzedy and others added 11 commits February 6, 2024 14:33
…..........�[41mFailed�[m

�[2m- hook id: ruff�[m
�[2m- exit code: 1�[m

�[1m.github/scripts/get_package_id.py�[0m�[36m:�[0m14�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to collect GHCR packages for a given owner & tag."
�[1m.github/scripts/get_package_id.py�[0m�[36m:�[0m35�[36m:�[0m9�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to make API call and return response, given a URL."
�[1m.github/scripts/get_package_id.py�[0m�[36m:�[0m85�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to return a package ID given an image version tag."
�[1m.github/scripts/get_package_id.py�[0m�[36m:�[0m109�[36m:�[0m5�[36m:�[0m �[1;31mRET505�[0m Unnecessary `else` after `return` statement
�[1m.github/scripts/get_package_id.py�[0m�[36m:�[0m115�[36m:�[0m25�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 4 with a constant variable
�[1mCPAC/_entrypoints/run.py�[0m�[36m:�[0m113�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (85 > 50)
�[1mCPAC/_entrypoints/run.py�[0m�[36m:�[0m113�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (245 > 100)
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m7�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m8�[36m:�[0m15�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m8�[36m:�[0m28�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m80�[36m:�[0m9�[36m:�[0m �[1;31mF821�[0m Undefined name `loadtxt`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m82�[36m:�[0m10�[36m:�[0m �[1;31mF821�[0m Undefined name `matrix`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m83�[36m:�[0m10�[36m:�[0m �[1;31mF821�[0m Undefined name `matrix`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m84�[36m:�[0m10�[36m:�[0m �[1;31mF821�[0m Undefined name `matrix`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m86�[36m:�[0m12�[36m:�[0m �[1;31mF821�[0m Undefined name `linalg`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m92�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `linalg`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m93�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `multiply`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m94�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `linalg`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m95�[36m:�[0m11�[36m:�[0m �[1;31mF821�[0m Undefined name `cross`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m96�[36m:�[0m11�[36m:�[0m �[1;31mF821�[0m Undefined name `mat`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m96�[36m:�[0m15�[36m:�[0m �[1;31mF821�[0m Undefined name `zeros`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m102�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `linalg`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m103�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `multiply`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m104�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `linalg`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m105�[36m:�[0m11�[36m:�[0m �[1;31mF821�[0m Undefined name `cross`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m106�[36m:�[0m11�[36m:�[0m �[1;31mF821�[0m Undefined name `mat`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m106�[36m:�[0m15�[36m:�[0m �[1;31mF821�[0m Undefined name `zeros`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m110�[36m:�[0m10�[36m:�[0m �[1;31mF821�[0m Undefined name `matrix`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m110�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `eye`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m114�[36m:�[0m10�[36m:�[0m �[1;31mF821�[0m Undefined name `matrix`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m114�[36m:�[0m17�[36m:�[0m �[1;31mF821�[0m Undefined name `eye`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m127�[36m:�[0m5�[36m:�[0m �[1;31mF821�[0m Undefined name `savetxt`
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m133�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to return various hemisphere-specific FreeSurfer outputs."
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m163�[36m:�[0m9�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Returns a function interface for split_hemi."
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m205�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (21 > 10)
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m228�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to return option string for 3dSkullStrip."
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m386�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to convert files from mgz to nifti format."
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m419�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m431�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m445�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m466�[36m:�[0m1�[36m:�[0m �[1;31mE402�[0m Module level import not at top of file
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m467�[36m:�[0m1�[36m:�[0m �[1;31mE402�[0m Module level import not at top of file
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m468�[36m:�[0m1�[36m:�[0m �[1;31mE402�[0m Module level import not at top of file
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m473�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m490�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/anat_preproc/utils.py�[0m�[36m:�[0m495�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m18�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m18�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Creates a joint mask (intersection) common to all the subjects in a provided list"
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m44�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m50�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m64�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m72�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m89�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Performs CWAS for a group of subjects."
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m123�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m170�[36m:�[0m34�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m197�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m203�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m210�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/cwas.py�[0m�[36m:�[0m250�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m4�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m11�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m16�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m19�[36m:�[0m5�[36m:�[0m �[1;31mE741�[0m Ambiguous variable name: `I`
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m25�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m32�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m38�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m43�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m53�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m55�[36m:�[0m5�[36m:�[0m �[1;31mE741�[0m Ambiguous variable name: `I`
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m65�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m73�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m79�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/cwas/mdmr.py�[0m�[36m:�[0m100�[36m:�[0m37�[36m:�[0m �[1;31mNPY002�[0m Replace legacy `np.random.permutation` call with `np.random.Generator`
�[1mCPAC/cwas/tests/features/steps/base_cwas.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/cwas/tests/features/steps/base_cwas.py�[0m�[36m:�[0m5�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m41�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m65�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m146�[36m:�[0m23�[36m:�[0m �[1;31mF823�[0m Local variable `afni` referenced before assignment
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m274�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m334�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m353�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m387�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m575�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (137 > 100)
�[1mCPAC/distortion_correction/distortion_correction.py�[0m�[36m:�[0m576�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m16�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m38�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m52�[36m:�[0m16�[36m:�[0m �[1;31mF821�[0m Undefined name `jac_out`
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m59�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m251�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m290�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m309�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/distortion_correction/utils.py�[0m�[36m:�[0m367�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m13�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m372�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m415�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m415�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to call fsl fslcpgeom command to copy"
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m452�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m452�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to get the standard brain image from FSL"
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m490�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/easy_thresh/easy_thresh.py�[0m�[36m:�[0m490�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Simple method to return tuple of z_threhsold"
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m132�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m150�[36m:�[0m34�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 3 with a constant variable
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m152�[36m:�[0m36�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 4 with a constant variable
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m163�[36m:�[0m27�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 40 with a constant variable
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m222�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m241�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m285�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/func_motion.py�[0m�[36m:�[0m307�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m10�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m20�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m46�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m54�[36m:�[0m20�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m55�[36m:�[0m13�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m56�[36m:�[0m13�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m69�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m70�[36m:�[0m16�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m71�[36m:�[0m9�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m71�[36m:�[0m22�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m93�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m98�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m103�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m103�[36m:�[0m5�[36m:�[0m �[1;31mF811�[0m Redefinition of unused `degrees_to_mm` from line 93
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m108�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m108�[36m:�[0m5�[36m:�[0m �[1;31mF811�[0m Redefinition of unused `mm_to_degrees` from line 98
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m113�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m113�[36m:�[0m5�[36m:�[0m �[1;31mF811�[0m Redefinition of unused `degrees_to_mm` from line 103
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m118�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m118�[36m:�[0m5�[36m:�[0m �[1;31mF811�[0m Redefinition of unused `mm_to_degrees` from line 108
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m123�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m204�[36m:�[0m21�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m204�[36m:�[0m34�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m205�[36m:�[0m19�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m205�[36m:�[0m32�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m233�[36m:�[0m30�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m234�[36m:�[0m9�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/func_preproc/utils.py�[0m�[36m:�[0m234�[36m:�[0m25�[36m:�[0m �[1;31mF821�[0m Undefined name `os`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m38�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m38�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "The main purpose of this workflow is to get various statistical measures"
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m359�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to calculate Framewise Displacement (FD)  as per Power et al., 2012."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m403�[36m:�[0m25�[36m:�[0m �[1;31mF821�[0m Undefined name `affine`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m403�[36m:�[0m35�[36m:�[0m �[1;31mF821�[0m Undefined name `rms`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m406�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to calculate framewise displacement as per Jenkinson et al. 2002."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m525�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to calculate all the movement parameters."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m590�[36m:�[0m63�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 0.1 with a constant variable
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m625�[36m:�[0m31�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m634�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to generate Power parameters for scrubbing."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m702�[36m:�[0m31�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m708�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m716�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m741�[36m:�[0m16�[36m:�[0m �[1;31mRUF012�[0m Mutable class attributes should be annotated with `typing.ClassVar`
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m757�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m761�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m768�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to calculate DVARS as per power's method."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m809�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to append all the motion and power parameters into 2 files."
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m853�[36m:�[0m42�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 5 with a constant variable
�[1mCPAC/generate_motion_statistics/generate_motion_statistics.py�[0m�[36m:�[0m863�[36m:�[0m42�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 4 with a constant variable
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m9�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m9�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Method to create operation string"
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m36�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m42�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m67�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m457�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (12 > 10)
�[1mCPAC/group_analysis/group_analysis.py�[0m�[36m:�[0m471�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/image_utils/spatial_smoothing.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/image_utils/spatial_smoothing.py�[0m�[36m:�[0m24�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/image_utils/spatial_smoothing.py�[0m�[36m:�[0m42�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/image_utils/statistical_transforms.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/image_utils/statistical_transforms.py�[0m�[36m:�[0m25�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/image_utils/statistical_transforms.py�[0m�[36m:�[0m48�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/image_utils/tests/test_smooth.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/image_utils/tests/test_smooth.py�[0m�[36m:�[0m12�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/image_utils/tests/test_smooth.py�[0m�[36m:�[0m68�[36m:�[0m84�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 0.99 with a constant variable
�[1mCPAC/image_utils/tests/test_smooth.py�[0m�[36m:�[0m74�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/image_utils/tests/test_smooth.py�[0m�[36m:�[0m139�[36m:�[0m60�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 0.99 with a constant variable
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m16�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m32�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m60�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m67�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m114�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m114�[36m:�[0m5�[36m:�[0m �[1;31mD414�[0m Section has no content ("Returns")
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m154�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m325�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (11 > 10)
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m338�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m407�[36m:�[0m5�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m429�[36m:�[0m9�[36m:�[0m �[1;31mF821�[0m Undefined name `warnings`
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m568�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_preproc.py�[0m�[36m:�[0m568�[36m:�[0m5�[36m:�[0m �[1;31mD414�[0m Section has no content ("Returns")
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m60�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m83�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m83�[36m:�[0m5�[36m:�[0m �[1;31mD414�[0m Section has no content ("Returns")
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m100�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m164�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m211�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m221�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m240�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m267�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m338�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m394�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (109 > 100)
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m395�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m691�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m756�[36m:�[0m50�[36m:�[0m �[1;31mF821�[0m Undefined name `connect_func_ingress`
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m767�[36m:�[0m36�[36m:�[0m �[1;31mF821�[0m Undefined name `connect_func_init`
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m772�[36m:�[0m36�[36m:�[0m �[1;31mF821�[0m Undefined name `connect_func_preproc`
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m777�[36m:�[0m36�[36m:�[0m �[1;31mF821�[0m Undefined name `connect_distortion_correction`
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m802�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m833�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m890�[36m:�[0m17�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `strat` overwritten by assignment target
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m970�[36m:�[0m21�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `strat` overwritten by assignment target
�[1mCPAC/longitudinal_pipeline/longitudinal_workflow.py�[0m�[36m:�[0m1126�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m7�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m7�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Performs median angle correction on fMRI data.  Median angle correction algorithm"
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m92�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Calculates median angle parameters of a subject."
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m135�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/median_angle/median_angle.py�[0m�[36m:�[0m135�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Calculates a target angle based on median angle parameters of"
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m63�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m63�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to handle selecting appropriate blocks based on"
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m106�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m184�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (11 > 10)
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m184�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (131 > 100)
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m197�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m243�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m250�[36m:�[0m38�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 4 with a constant variable
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m250�[36m:�[0m71�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m296�[36m:�[0m16�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m346�[36m:�[0m20�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m389�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m423�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m501�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (64 > 50)
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m501�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (224 > 100)
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m509�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m968�[36m:�[0m16�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1097�[36m:�[0m16�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1134�[36m:�[0m16�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1255�[36m:�[0m24�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1635�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1803�[36m:�[0m5�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1817�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1949�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m1996�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2067�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2120�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2191�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2228�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2267�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2305�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2368�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2412�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2422�[36m:�[0m21�[36m:�[0m �[1;31mF821�[0m Undefined name `T1w`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2422�[36m:�[0m28�[36m:�[0m �[1;31mF821�[0m Undefined name `bold`
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2424�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2856�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2898�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Parses regressors file from outdir ingress."
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2929�[36m:�[0m21�[36m:�[0m �[1;31mG004�[0m Logging statement uses f-string
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m2986�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m3070�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m3117�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m3165�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/nuisance.py�[0m�[36m:�[0m3215�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m14�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m26�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m74�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m159�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m159�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "This function possibly adds a scalar matrix to X"
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m159�[36m:�[0m5�[36m:�[0m �[1;31mD404�[0m First word of the docstring should not be "This"
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m185�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/nuisance/utils/compcor.py�[0m�[36m:�[0m197�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m175�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m178�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m184�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m185�[36m:�[0m58�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m194�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m203�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m206�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/check_outputs.py�[0m�[36m:�[0m227�[36m:�[0m17�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `entity` overwritten by assignment target
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m22�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m42�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m55�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m76�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m95�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m138�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m183�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m235�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m255�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m286�[36m:�[0m17�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `roi_mean` overwritten by assignment target
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m287�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m327�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m339�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m415�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m455�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m467�[36m:�[0m31�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 30 with a constant variable
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m473�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m502�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (87 > 50)
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m502�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (235 > 100)
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m502�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m819�[36m:�[0m33�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m836�[36m:�[0m35�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 3 with a constant variable
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m932�[36m:�[0m40�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 3 with a constant variable
�[1mCPAC/pipeline/cpac_ga_model_generator.py�[0m�[36m:�[0m942�[36m:�[0m40�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 3 with a constant variable
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m21�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m65�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m95�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m127�[36m:�[0m9�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m136�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m217�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m253�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m268�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m304�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m306�[36m:�[0m35�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m345�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m477�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m503�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m527�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m628�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m684�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m710�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m717�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (136 > 100)
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m717�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m768�[36m:�[0m9�[36m:�[0m �[1;31mRET506�[0m Unnecessary `else` after `raise` statement
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1146�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1179�[36m:�[0m5�[36m:�[0m �[1;31mRET505�[0m Unnecessary `else` after `return` statement
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1183�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1377�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (13 > 10)
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1377�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1467�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1518�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1535�[36m:�[0m34�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1556�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1595�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1605�[36m:�[0m5�[36m:�[0m �[1;31mRET505�[0m Unnecessary `else` after `return` statement
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1609�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1621�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1903�[36m:�[0m5�[36m:�[0m �[1;31mPLR0913�[0m Too many arguments in function definition (12 > 10)
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m1903�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2039�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2075�[36m:�[0m22�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 0.0 with a constant variable
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2118�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2149�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2174�[36m:�[0m13�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `output_df` overwritten by assignment target
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2178�[36m:�[0m13�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `output_df` overwritten by assignment target
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2188�[36m:�[0m13�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `group_id` overwritten by assignment target
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2205�[36m:�[0m13�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `output_df_group` overwritten by assignment target
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2211�[36m:�[0m13�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `output_df_group` overwritten by assignment target
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2236�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_group_runner.py�[0m�[36m:�[0m2281�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m214�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (51 > 50)
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m214�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (187 > 100)
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m224�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to prepare and, optionally, run the C-PAC workflow."
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m366�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m583�[36m:�[0m21�[36m:�[0m �[1;31mG004�[0m Logging statement uses f-string
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m853�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m870�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m876�[36m:�[0m9�[36m:�[0m �[1;31mRET506�[0m Unnecessary `else` after `raise` statement
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m900�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1057�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1086�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1126�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to list node blocks line by line."
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1165�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1212�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (77 > 50)
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1212�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (186 > 100)
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1212�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1291�[36m:�[0m34�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1466�[36m:�[0m29�[36m:�[0m �[1;31mF821�[0m Undefined name `warp_denoiseNofilt_to_T1template`
�[1mCPAC/pipeline/cpac_pipeline.py�[0m�[36m:�[0m1631�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m34�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m40�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m102�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m102�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Function to build a SLURM batch job submission script and"
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m118�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m124�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m239�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m263�[36m:�[0m5�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (51 > 50)
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m263�[36m:�[0m5�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (158 > 100)
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m274�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m274�[36m:�[0m5�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Returns"
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m322�[36m:�[0m9�[36m:�[0m �[1;31mRET506�[0m Unnecessary `else` after `raise` statement
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m379�[36m:�[0m61�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 70 with a constant variable
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m397�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m411�[36m:�[0m21�[36m:�[0m �[1;31mA001�[0m Variable `id` is shadowing a Python builtin
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m415�[36m:�[0m21�[36m:�[0m �[1;31mA001�[0m Variable `id` is shadowing a Python builtin
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m419�[36m:�[0m5�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m433�[36m:�[0m9�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/cpac_runner.py�[0m�[36m:�[0m461�[36m:�[0m13�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1�[36m:�[0m1�[36m:�[0m �[1;31mD100�[0m Missing docstring in public module
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m28�[36m:�[0m28�[36m:�[0m �[1;31mF811�[0m Redefinition of unused `logging` from line 22
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m70�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m133�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m141�[36m:�[0m9�[36m:�[0m �[1;31mD105�[0m Missing docstring in magic method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m146�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m194�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m197�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m205�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m208�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m211�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m214�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m217�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m220�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m230�[36m:�[0m9�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Removes ``desc-*`` label."
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m237�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m251�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m260�[36m:�[0m9�[36m:�[0m �[1;31mRET506�[0m Unnecessary `else` after `raise` statement
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m265�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m273�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m282�[36m:�[0m9�[36m:�[0m �[1;31mRET505�[0m Unnecessary `elif` after `return` statement
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m287�[36m:�[0m9�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m287�[36m:�[0m9�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Returns the regressor dictionary for the current strategy if"
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m318�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m354�[36m:�[0m9�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m393�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m435�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m446�[36m:�[0m9�[36m:�[0m �[1;31mRET505�[0m Unnecessary `elif` after `return` statement
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m453�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m460�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m464�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m467�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m489�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m502�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m517�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m527�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m547�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m550�[36m:�[0m9�[36m:�[0m �[1;31mRET505�[0m Unnecessary `elif` after `return` statement
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m560�[36m:�[0m9�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (69 > 50)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m560�[36m:�[0m9�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (155 > 100)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m560�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m583�[36m:�[0m34�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m817�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m903�[36m:�[0m9�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m937�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1078�[36m:�[0m9�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (65 > 50)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1078�[36m:�[0m9�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (161 > 100)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1078�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1078�[36m:�[0m37�[36m:�[0m �[1;31mA002�[0m Argument `all` is shadowing a Python builtin
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1230�[36m:�[0m33�[36m:�[0m �[1;31mPLR2004�[0m Magic value used in comparison, consider replacing 2 with a constant variable
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1396�[36m:�[0m9�[36m:�[0m �[1;31mD401�[0m First line of docstring should be in imperative mood: "Factory function to create NodeData objects."
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1409�[36m:�[0m7�[36m:�[0m �[1;31mD101�[0m Missing docstring in public class
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1420�[36m:�[0m17�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `node_block_function` overwritten by assignment target
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1448�[36m:�[0m25�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1482�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1485�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1490�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1499�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1505�[36m:�[0m9�[36m:�[0m �[1;31mPLR0912�[0m Too many branches (92 > 50)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1505�[36m:�[0m9�[36m:�[0m �[1;31mPLR0915�[0m Too many statements (187 > 100)
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1505�[36m:�[0m9�[36m:�[0m �[1;31mD102�[0m Missing docstring in public method
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1632�[36m:�[0m17�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1823�[36m:�[0m37�[36m:�[0m �[1;31mPLW2901�[0m `for` loop variable `connection` overwritten by assignment target
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1836�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1903�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1913�[36m:�[0m8�[36m:�[0m �[1;31mE721�[0m Do not compare types, use `isinstance()`
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m1947�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2014�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2060�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2181�[36m:�[0m17�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2205�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2277�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2345�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2353�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2373�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2465�[36m:�[0m9�[36m:�[0m �[1;31mPLR5501�[0m Use `elif` instead of `else` then `if`, to reduce indentation
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2572�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2628�[36m:�[0m9�[36m:�[0m �[1;31mE722�[0m Do not use bare `except`
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2645�[36m:�[0m5�[36m:�[0m �[1;31mD103�[0m Missing docstring in public function
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2689�[36m:�[0m5�[36m:�[0m �[1;31mD205�[0m 1 blank line required between summary line and description
�[1mCPAC/pipeline/engine.py�[0m�[36m:�[0m2728�[36m:�[…
option_key=["functional_preproc", "func_masking", "using"],
option_val="FSL_AFNI",
inputs=[
("motion-basefile", "desc-preproc_bold"),
Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed this nodeblock uses the input "motion-basefile" but doesn't use the input "desc-preproc_bold" even though it's listed in the inputs in the decorator here.

Comment on lines 1127 to +1132
# Fix precision errors
# https://github.com/ANTsX/ANTs/wiki/Inputs-do-not-occupy-the-same-physical-space#fixing-precision-errors
print_header = pe.Node(PrintHeader(what_information=4),
name=f'print_header_{pipe_num}')
set_direction = pe.Node(SetDirectionByMatrix(),
name=f'set_direction_{pipe_num}')
print_header = pe.Node(
PrintHeader(what_information=4), name=f"print_header_{pipe_num}"
)
set_direction = pe.Node(SetDirectionByMatrix(), name=f"set_direction_{pipe_num}")
Copy link
Member Author

Choose a reason for hiding this comment

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

(To consider later): The original codebase has a MatchHeader interface that we could use instead of this chain of nodes


if c.scanParametersCSV is not None:
s_param_map = read_csv(c.scanParametersCSV)
Copy link
Member Author

Choose a reason for hiding this comment

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

  1. s_param_map isn't used anywhere?
  2. def extract_data(c, param_map):
    """
    Generate a CPAC input subject list Python file.
    The method extracts anatomical and functional data for each site (if multiple site)
    and/or scan parameters for each site and put it into a data structure read by Python.
    Examples
    --------
    subjects_list =[
    {
    'subject_id' : '0050386',
    'unique_id' : 'session_1',
    'anat': '/Users/home/data/NYU/0050386/session_1/anat_1/anat.nii.gz',
    'rest':{
    'rest_1_rest' : '/Users/home/data/NYU/0050386/session_1/rest_1/rest.nii.gz',
    'rest_2_rest' : '/Users/home/data/NYU/0050386/session_1/rest_2/rest.nii.gz',
    }
    'scan_parameters':{
    'tr': '2',
    'acquisition': 'alt+z2',
    'reference': '17',
    'first_tr': '',
    'last_tr': '',
    }
    },
    ]
    or
    subjects_list =[
    {
    'subject_id' : '0050386',
    'unique_id' : 'session_1',
    'anat': '/Users/home/data/NYU/0050386/session_1/anat_1/anat.nii.gz',
    'rest':{
    'rest_1_rest' : '/Users/home/data/NYU/0050386/session_1/rest_1/rest.nii.gz',
    'rest_2_rest' : '/Users/home/data/NYU/0050386/session_1/rest_2/rest.nii.gz',
    }
    },
    ]
    """
    def get_list(arg) -> list:
    """Read each line of the file into list."""
    if isinstance(arg, list):
    ret_list = arg
    else:
    ret_list = [fline.rstrip("\r\n") for fline in open(arg, "r").readlines()]
    return ret_list
    exclusion_list = []
    if c.exclusionSubjectList is not None:
    exclusion_list = get_list(c.exclusionSubjectList)
    subject_list = []
    if c.subjectList is not None:
    subject_list = get_list(c.subjectList)
    def checkTemplate(template) -> None:
    """Check if `template` is correct."""
    if template.count("%s") != 2:
    msg = (
    "Please provide '%s' in the template"
    "where your site and subjects are present"
    "Please see examples"
    )
    logger.exception(msg)
    raise Exception(msg)
    filename, ext = os.path.splitext(os.path.basename(template))
    ext = os.path.splitext(filename)[1] + ext
    if ext not in [".nii", ".nii.gz"]:
    msg = "Invalid file name", os.path.basename(template)
    logger.exception(msg)
    raise Exception(msg)
    def get_site_list(path):
    base, relative = path.split("%s")
    return os.listdir(base)
    def check_length(scan_name, file_name):
    if len(file_name) > 30:
    msg = (
    "filename- %s is too long."
    "It should not be more than 30 characters." % (file_name)
    )
    logger.exception(msg)
    raise Exception(msg)
    if (
    len(scan_name) - len(os.path.splitext(os.path.splitext(file_name)[0])[0])
    >= 40
    ):
    msg = (
    "scan name %s is too long."
    "It should not be more than 20 characters"
    % (
    scan_name.replace(
    "_" + os.path.splitext(os.path.splitext(file_name)[0])[0], ""
    )
    )
    )
    logger.exception(msg)
    raise Exception(msg)
    def create_site_subject_mapping(base, relative):
    """Create mapping between site and subject."""
    site_subject_map = {}
    base_path_list = []
    if c.siteList is not None:
    site_list = get_list(c.siteList)
    else:
    site_list = get_site_list(base)
    for site in site_list:
    paths = glob.glob(string.replace(base, "%s", site))
    base_path_list.extend(paths)
    for path in paths:
    for sub in os.listdir(path):
    # check if subject is present in subject_list
    if subject_list:
    if sub in subject_list and sub not in exclusion_list:
    site_subject_map[sub] = site
    elif sub not in exclusion_list:
    if sub not in ".DS_Store":
    site_subject_map[sub] = site
    return base_path_list, site_subject_map
    def getPath(template):
    """Split the input template path...
    ...into base, path before subject directory and relative, path after subject directory.
    """
    checkTemplate(template)
    base, relative = template.rsplit("%s", 1)
    base, subject_map = create_site_subject_mapping(base, relative)
    base.sort()
    relative = relative.lstrip("/")
    return base, relative, subject_map
    # get anatomical base path and anatomical relative path
    anat_base, anat_relative = getPath(c.anatomicalTemplate)[:2]
    # get functional base path, functional relative path and site-subject map
    func_base, func_relative, subject_map = getPath(c.functionalTemplate)
    if not anat_base:
    msg = (
    "Anatomical Data template incorrect. No such file or directory %s",
    anat_base,
    )
    logger.exception(msg)
    raise Exception(msg)
    if not func_base:
    msg = "Functional Data template incorrect. No such file or directory %s, func_base"
    logger.exception(msg)
    raise Exception(msg)
    if len(anat_base) != len(func_base):
    msg1 = (
    "Some sites are missing, Please check your template",
    anat_base,
    "!=",
    func_base,
    )
    logger.exception(msg1)
    msg2 = (
    " Base length Unequal. Some sites are missing."
    "extract_data doesn't script support this.Please"
    "Provide your own subjects_list file"
    )
    logger.exception(msg2)
    raise Exception(msg2)
    # calculate the length of relative paths(path after subject directory)
    func_relative_len = len(func_relative.split("/"))
    anat_relative_len = len(anat_relative.split("/"))
    def check_for_sessions(relative_path, path_length):
    """Check if there are sessions present."""
    # default
    session_present = False
    session_path = "session_1"
    # session present if path_length is equal to 3
    if path_length == 3: # noqa: PLR2004
    relative_path_list = relative_path.split("/")
    session_path = relative_path_list[0]
    relative_path = string.join(relative_path_list[1:], "/")
    session_present = True
    elif path_length > 3: # noqa: PLR2004
    msg = (
    "extract_data script currently doesn't support this directory structure."
    "Please provide the subjects_list file to run CPAC."
    "For more information refer to manual"
    )
    logger.exception(msg)
    raise Exception(msg)
    return session_present, session_path, relative_path
    func_session_present, func_session_path, func_relative = check_for_sessions(
    func_relative, func_relative_len
    )
    anat_session_present, anat_session_path, anat_relative = check_for_sessions(
    anat_relative, anat_relative_len
    )
    f = open(
    os.path.join(
    c.outputSubjectListLocation, "CPAC_subject_list_%s.yml" % c.subjectListName
    ),
    "wb",
    )
    def fetch_path(i, anat_sub, func_sub, session_id):
    """
    Extract anatomical and functional path for a session and print to file.
    Parameters
    ----------
    i : int
    index of site
    anat_sub : string
    string containing subject/ concatenated
    subject-session path for anatomical file
    func_sub : string
    string containing subject/ concatenated
    subject-session path for functional file
    session_id : string
    session
    Raises
    ------
    Exception
    """
    try:
    def print_begin_of_file(sub, session_id):
    print("-", file=f)
    print(" subject_id: '" + sub + "'", file=f)
    print(" unique_id: '" + session_id + "'", file=f)
    def print_end_of_file(sub):
    if param_map is not None:
    try:
    logger.debug("site for sub %s -> %s", sub, subject_map.get(sub))
    logger.debug(
    "scan parameters for the above site %s",
    param_map.get(subject_map.get(sub)),
    )
    print(" scan_parameters:", file=f)
    print(
    " tr: '"
    + param_map.get(subject_map.get(sub))[4]
    + "'",
    file=f,
    )
    print(
    " acquisition: '"
    + param_map.get(subject_map.get(sub))[0]
    + "'",
    file=f,
    )
    print(
    " reference: '"
    + param_map.get(subject_map.get(sub))[3]
    + "'",
    file=f,
    )
    print(
    " first_tr: '"
    + param_map.get(subject_map.get(sub))[1]
    + "'",
    file=f,
    )
    print(
    " last_tr: '"
    + param_map.get(subject_map.get(sub))[2]
    + "'",
    file=f,
    )
    except:
    msg = (
    " No Parameter values for the %s site is defined in the scan"
    " parameters csv file" % subject_map.get(sub)
    )
    raise ValueError(msg)
    # get anatomical file
    anat_base_path = os.path.join(anat_base[i], anat_sub)
    func_base_path = os.path.join(func_base[i], func_sub)
    anat = None
    func = None
    anat = glob.glob(os.path.join(anat_base_path, anat_relative))
    func = glob.glob(os.path.join(func_base_path, func_relative))
    if anat and func:
    print_begin_of_file(anat_sub.split("/")[0], session_id)
    print(" anat: '" + os.path.realpath(anat[0]) + "'", file=f)
    print(" rest: ", file=f)
    # iterate for each rest session
    for _iter in func:
    # get scan_id
    iterable = os.path.splitext(
    os.path.splitext(_iter.replace(func_base_path, "").lstrip("/"))[
    0
    ]
    )[0]
    iterable = iterable.replace("/", "_")
    check_length(iterable, os.path.basename(os.path.realpath(_iter)))
    print(
    " " + iterable + ": '" + os.path.realpath(_iter) + "'",
    file=f,
    )
    print_end_of_file(anat_sub.split("/")[0])
    else:
    logger.debug("skipping subject %s", anat_sub.split("/")[0])
    except ValueError:
    logger.exception(ValueError.message)
    raise
    except Exception as e:
    err_msg = (
    "Exception while felching anatomical and functional "
    "paths: \n" + str(e)
    )
    logger.exception(err_msg)
    raise Exception(err_msg)
    def walk(index, sub):
    """
    Walk across each subject path in the data site path.
    Parameters
    ----------
    index : int
    index of site
    sub : string
    subject_id
    Raises
    ------
    Exception
    """
    try:
    if func_session_present:
    # if there are sessions
    if "*" in func_session_path:
    session_list = glob.glob(
    os.path.join(
    func_base[index], os.path.join(sub, func_session_path)
    )
    )
    else:
    session_list = [func_session_path]
    if session_list:
    for session in session_list:
    session_id = os.path.basename(session)
    if anat_session_present:
    if func_session_path == anat_session_path:
    fetch_path(
    index,
    os.path.join(sub, session_id),
    os.path.join(sub, session_id),
    session_id,
    )
    else:
    fetch_path(
    index,
    os.path.join(sub, anat_session_path),
    os.path.join(sub, session_id),
    session_id,
    )
    else:
    fetch_path(
    index, sub, os.path.join(sub, session_id), session_id
    )
    else:
    logger.debug("Skipping subject %s", sub)
    else:
    logger.debug("No sessions")
    session_id = ""
    fetch_path(index, sub, sub, session_id)
    except Exception:
    logger.exception(Exception.message)
    raise
    except:
    err_msg = "Please make sessions are consistent across all subjects.\n\n"
    logger.exception(err_msg)
    raise Exception(err_msg)
    try:
    for i in range(len(anat_base)):
    for sub in os.listdir(anat_base[i]):
    # check if subject is present in subject_list
    if subject_list:
    if sub in subject_list and sub not in exclusion_list:
    logger.debug("extracting data for subject: %s", sub)
    walk(i, sub)
    # check that subject is not in exclusion list
    elif sub not in exclusion_list and sub not in ".DS_Store":
    logger.debug("extracting data for subject: %s", sub)
    walk(i, sub)
    _name = os.path.join(c.outputSubjectListLocation, "CPAC_subject_list.yml")
    logger.info(
    "Extraction Successfully Completed...Input Subjects_list for CPAC - %s",
    _name,
    )
    except Exception:
    logger.exception(Exception.message)
    raise
    finally:
    f.close()
    isn't called anywhere?
  3. CPAC/utils/extract_data.py file and CPAC/utils/extract_data_multiscan.py have a lot of WET overlap? In extract_data_multiscan,
    extract_data(c, s_param_map)
  4. Neither extract_data nor extract_data_multiscan is imported or used anywhere as far as I can tell?

Given all this, I think we can delete both of these files?

@shnizzedy shnizzedy marked this pull request as ready for review March 25, 2024 16:26
Comment on lines +1471 to +1472
# if "Template" in target_space_alff and target_space_nuis == "native":
# pipeline_blocks += [warp_denoiseNofilt_to_T1template]
Copy link
Member Author

Choose a reason for hiding this comment

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

The import for warp_denoiseNofilt_to_T1template was removed in a8782f2 / #1889 (diff).

Do we want it gone and can remove this, or should we restore the import?

"space-fsLR_den-32k_desc-FS_strainJ": (surf, "StrainJ_FS_dscalar"),
"hemi-L_space-fsLR_den-32k_desc-MSMSulc_strainJ": (surf, "StrainJ_MSMSulc_L"),
"hemi-R_space-fsLR_den-32k_desc-MSMSulc_strainJ": (surf, "StrainJ_MSMSulc_R"),
"space-fsLR_den-32k_desc-FS_strainJ": (surf, "StrainJ_MSMSulc_dscalar"),
Copy link
Member Author

Choose a reason for hiding this comment

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

The output for the resource "space-fsLR_den-32k_desc-FS_strainJ" is set to "StrainJ_FS_dscalar" and then reset to "StrainJ_MSMSulc_dscalar" three lines later.

I think the second one is supposed to be "space-fsLR_den-32k_desc-MSMSulc_strainJ" based on the pattern of changes in the commit in which this was set up (d6a9eab#diff-dcbc5442d7f74e5b292b813146582f950ca1dc1c7b96693c2dbde66e53105db8R719-R722).

I don't see either of these resources used anywhere, so it probably isn't causing any problems.

from CPAC.pipeline import nipype_pipeline_engine as pe
import nipype.interfaces.utility as util

from CPAC.utils.monitoring import IFLOGGER


def compute_fisher_z_score(correlation_file, timeseries_one_d):
Copy link
Member Author

Choose a reason for hiding this comment

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

We've got two definitions for compute_fisher_z_score (this and

C-PAC/CPAC/utils/utils.py

Lines 429 to 472 in 2cc59aa

def compute_fisher_z_score(correlation_file, timeseries_one_d, input_name):
"""Compute the fisher z transform of the input correlation map.
If the correlation map contains data for multiple ROIs then
return z score for each ROI as a seperate NIfTI file.
Parameters
----------
correlation_file : string
Input correlations file
Returns
-------
out_file : list (nifti files)
list of z_scores for mask or ROI
"""
import os
import numpy as np
import nibabel as nib
# get the specific roi number
filename = correlation_file.split("/")[-1]
filename = filename.replace(".nii", "")
if ".gz" in filename:
filename = filename.replace(".gz", "")
corr_img = nib.load(correlation_file)
corr_data = corr_img.get_fdata()
hdr = corr_img.header
# calculate the Fisher r-to-z transformation
corr_data = np.log((1 + corr_data) / (1 - corr_data)) / 2.0
z_score_img = nib.Nifti1Image(corr_data, header=hdr, affine=corr_img.affine)
out_file = os.path.join(os.getcwd(), filename + "_fisher_zstd.nii.gz")
z_score_img.to_filename(out_file)
return out_file
). That one doesn't use the timeseries file at all; this one isn't called anywhere.
diff


return wflow


def compute_fisher_z_score(correlation_file, timeseries_one_d, input_name):
"""
Computes the fisher z transform of the input correlation map
"""Compute the fisher z transform of the input correlation map.
Copy link
Member Author

Choose a reason for hiding this comment

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

We've got two definitions for compute_fisher_z_score (this and

C-PAC/CPAC/sca/utils.py

Lines 22 to 91 in 2cc59aa

def compute_fisher_z_score(correlation_file, timeseries_one_d):
"""
Computes the fisher z transform of the input correlation map
If the correlation map contains data for multiple ROIs then
the function returns z score for each ROI as a seperate nifti
file.
Parameters
----------
correlation_file : string
Input correlations file
Returns
-------
out_file : list (nifti files)
list of z_scores for mask or ROI
"""
import os
import numpy as np
import nibabel as nib
roi_numbers = []
if "#" in open(timeseries_one_d, "r").readline().rstrip("\r\n"):
roi_numbers = (
open(timeseries_one_d, "r")
.readline()
.rstrip("\r\n")
.replace("#", "")
.split("\t")
)
corr_img = nib.load(correlation_file)
corr_data = corr_img.get_fdata()
hdr = corr_img.header
corr_data = np.log((1 + corr_data) / (1 - corr_data)) / 2.0
dims = corr_data.shape
out_file = []
if len(dims) == 5 or len(roi_numbers) > 0:
if len(dims) == 5:
x, y, z, one, roi_number = dims
corr_data = np.reshape(corr_data, (x * y * z, roi_number), order="F")
for i in range(0, len(roi_numbers)):
sub_data = corr_data
if len(dims) == 5:
sub_data = np.reshape(corr_data[:, i], (x, y, z), order="F")
sub_img = nib.Nifti1Image(
sub_data, header=corr_img.header, affine=corr_img.affine
)
sub_z_score_file = os.path.join(
os.getcwd(), "z_score_ROI_number_%s.nii.gz" % (roi_numbers[i])
)
sub_img.to_filename(sub_z_score_file)
out_file.append(sub_z_score_file)
else:
z_score_img = nib.Nifti1Image(corr_data, header=hdr, affine=corr_img.affine)
z_score_file = os.path.join(os.getcwd(), "z_score.nii.gz")
z_score_img.to_filename(z_score_file)
out_file.append(z_score_file)
return out_file
). That one isn't called anywhere; this one doesn't use the timeseries file at all.
diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

10 participants