Remi-Gau / nilearn

Machine learning for NeuroImaging in Python
http://nilearn.github.io
Other
1 stars 1 forks source link

list of complex and long functions #19

Closed Remi-Gau closed 1 year ago

Remi-Gau commented 1 year ago
$ flake8 --select C90 --max-complexity 20 nilearn

nilearn/connectome/group_sparse_cov.py:234:1: C901 '_group_sparse_covariance' is too complex (33)
nilearn/datasets/func.py:419:1: C901 'fetch_localizer_contrasts' is too complex (28)
nilearn/datasets/utils.py:507:1: C901 '_fetch_file' is too complex (21)
nilearn/glm/first_level/first_level.py:412:5: C901 'FirstLevelModel.fit' is too complex (32)
nilearn/glm/second_level/second_level.py:33:1: C901 '_check_second_level_input' is too complex (21)
nilearn/image/resampling.py:333:1: C901 'resample_img' is too complex (33)
nilearn/mass_univariate/permuted_least_squares.py:300:1: C901 'permuted_ols' is too complex (41)
nilearn/plotting/displays/_projectors.py:52:5: C901 'OrthoProjector.add_graph' is too complex (22)
$ flake8 --select CFQ001 --max-function-length 150

./nilearn/_utils/tests/test_numpy_conversions.py:79:1: CFQ001 Function test_as_ndarray has length 152 that exceeds max allowed length 150
./nilearn/connectome/group_sparse_cov.py:234:1: CFQ001 Function _group_sparse_covariance has length 253 that exceeds max allowed length 150
./nilearn/connectome/group_sparse_cov.py:1041:5: CFQ001 Function fit has length 164 that exceeds max allowed length 150
./nilearn/datasets/func.py:419:1: CFQ001 Function fetch_localizer_contrasts has length 205 that exceeds max allowed length 150
./nilearn/decoding/space_net.py:299:1: CFQ001 Function path_scores has length 163 that exceeds max allowed length 150
./nilearn/decoding/space_net.py:828:5: CFQ001 Function fit has length 168 that exceeds max allowed length 150
./nilearn/glm/first_level/first_level.py:412:5: CFQ001 Function fit has length 180 that exceeds max allowed length 150
./nilearn/image/resampling.py:333:1: CFQ001 Function resample_img has length 252 that exceeds max allowed length 150
./nilearn/interfaces/bids/glm.py:13:1: CFQ001 Function save_glm_to_bids has length 152 that exceeds max allowed length 150
./nilearn/maskers/tests/test_multi_nifti_labels_masker.py:165:1: CFQ001 Function test_multi_nifti_labels_masker_resampling has length 155 that exceeds max allowed length 150
./nilearn/maskers/tests/test_nifti_labels_masker.py:340:1: CFQ001 Function test_nifti_labels_masker_resampling has length 158 that exceeds max allowed length 150
./nilearn/mass_univariate/permuted_least_squares.py:300:1: CFQ001 Function permuted_ols has length 407 that exceeds max allowed length 150
./nilearn/plotting/img_plotting.py:1309:1: CFQ001 Function plot_carpet has length 166 that exceeds max allowed length 150