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

[FIX] address flaky tests in CI #3785

Merged
merged 15 commits into from
Jun 29, 2023
12 changes: 0 additions & 12 deletions nilearn/regions/tests/test_parcellations.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ def test_parcellations_fit_on_multi_nifti_images(method, test_image):

assert parcellator.labels_img_ is not None

parcellator = Parcellations(method="rena", n_parcels=5, verbose=0)
parcellator.fit(fmri_imgs)

assert parcellator.labels_img_ is not None

parcellator = Parcellations(
method="hierarchical_kmeans", n_parcels=5, verbose=0
)
parcellator.fit(fmri_imgs)

assert parcellator.labels_img_ is not None

Comment on lines -112 to -123
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

both rena and hierarchical_kmeans were actually included in the parametrization of this test

# Smoke test with explicit mask image
mask_img = np.ones((10, 11, 12))
mask_img = Nifti1Image(mask_img, AFFINE_EYE)
Expand Down