Skip to content

TST: Test both for small number of seeds and for failure to find bund…#186

Merged
36000 merged 1 commit into
tractometry:mainfrom
arokem:nightly_random_seeds
May 11, 2026
Merged

TST: Test both for small number of seeds and for failure to find bund…#186
36000 merged 1 commit into
tractometry:mainfrom
arokem:nightly_random_seeds

Conversation

@arokem

@arokem arokem commented May 10, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings May 10, 2026 12:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the test_API_type_checking nightly test to explicitly cover (1) the new early failure when using random_seeds=True with too few seeds and (2) the downstream failure mode where no bundles are recognized when seeding is increased beyond that threshold. This aligns the test expectations with the error now raised during tractography plan construction and addresses the referenced nightly failure.

Changes:

  • Replace the previous single assertion of "Fatal: No bundles recognized." with an assertion for the newer low-seed ValueError message when n_seeds is very small.
  • Add a second test case using a larger n_seeds to still assert the "Fatal: No bundles recognized." failure mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AFQ/tests/test_api.py
@@ -532,6 +537,31 @@ def test_API_type_checking():
raise e
del myafq
@36000
36000 merged commit 357ea23 into tractometry:main May 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants