Skip to content

mrtrix3.path.wait_for(): Fix variable ghosting#2968

Merged
Lestropie merged 2 commits intomasterfrom
path_waitfor_ghosting
Feb 6, 2025
Merged

mrtrix3.path.wait_for(): Fix variable ghosting#2968
Lestropie merged 2 commits intomasterfrom
path_waitfor_ghosting

Conversation

@Lestropie
Copy link
Member

Thought that I had resolved this previously, probably when doing #2609, but in doing some other refactoring discovered that the problematic code was still in place. Maybe I fixed it some time but never pushed.

  • num_exit() was a bad name for the function given its operation; it checks for the number of files in a list that exist. But there was also an integer variable called num_exist.

  • num_in_use() function immediately got hidden behind integer variable num_in_use.

  • Function was immediately waiting 60s, rather than the intended operation of using a progressively increasing delay time up to a maximum of 60s.

The functionality should be reviewable from the code, it's pretty obviously wrong. Verifying within an existing script is hard because I can't replicate the circumstances in which it is required, but I've at least tested in an interactive Python terminal.

@Lestropie Lestropie requested a review from a team August 17, 2024 02:50
@Lestropie Lestropie self-assigned this Aug 17, 2024
@Lestropie Lestropie added this to the 3.0.5 updates milestone Sep 16, 2024
@Lestropie Lestropie added this pull request to the merge queue Feb 5, 2025
Merged via the queue into master with commit ff2dedf Feb 6, 2025
@Lestropie Lestropie deleted the path_waitfor_ghosting branch February 6, 2025 00:01
@Lestropie Lestropie restored the path_waitfor_ghosting branch August 26, 2025 08:11
@Lestropie Lestropie deleted the path_waitfor_ghosting branch August 27, 2025 00:08
@Lestropie Lestropie mentioned this pull request Sep 2, 2025
Lestropie added a commit that referenced this pull request Sep 3, 2025
- #2968: Absent
- #3049: Absent
- #2767: Partially absent
- # 3027: Almost all absent (the new tests were in place but that was all)
- #3047: Absent
- #3071: Absent
- #3011: Fill in gaps of changes that were applied to #3011 prior to its derivation from #2917.
- #2609: Fixed a couple of small omissions.
- #2602: Bits and pieces missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants