Skip to content

Conversation

@alexrockhill
Copy link
Contributor

get_montage_volume_labels can enter an infinite recursion because the voxel neighbors on every step are not removed, causing it to go from one voxel to the neighbor and back. This fixes that.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

any chance we can update a test?

@alexrockhill
Copy link
Contributor Author

any chance we can update a test?

Okay this should have failed before now because it goes more than one voxel away.

I also changed the default to 2 because 5 mm is a huge number of voxels which was tripping the max number of voxels and that's what was avoiding the infinite loop.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

I'll try to restart the failing CI

@larsoner larsoner added this to the 0.24 milestone Nov 1, 2021
@larsoner
Copy link
Member

larsoner commented Nov 1, 2021

We can ignore the test_doc_filling failures, those are now fixed in main. I'll merge assuming Azure comes back happy other than those and what #9917 fixed

@larsoner larsoner merged commit bf945f1 into mne-tools:main Nov 1, 2021
@larsoner
Copy link
Member

larsoner commented Nov 1, 2021

Thanks @alexrockhill

@alexrockhill alexrockhill deleted the bug branch November 1, 2021 20:11
@alexrockhill alexrockhill restored the bug branch January 30, 2022 21:27
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