Skip to content

[WIP/FIX] GPUStreamlines#153

Merged
36000 merged 1 commit into
tractometry:mainfrom
36000:more_gpu_fixes
Jan 27, 2026
Merged

[WIP/FIX] GPUStreamlines#153
36000 merged 1 commit into
tractometry:mainfrom
36000:more_gpu_fixes

Conversation

@36000

@36000 36000 commented Jan 16, 2026

Copy link
Copy Markdown
Collaborator

We will also need to update GPUStreamlines to 2.1 in this PR

Copilot AI review requested due to automatic review settings January 16, 2026 04:36

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

This PR adds initialization logic for the rng_seed parameter in the gpu_track function to ensure a random seed is generated when None is provided.

Changes:

  • Add conditional initialization of rng_seed to generate a random integer when it is None

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

Comment on lines +156 to +157
if rng_seed is None:
rng_seed = np.random.randint(0, 2**31 - 1)

Copilot AI Jan 16, 2026

Copy link

Choose a reason for hiding this comment

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

The rng_seed initialization occurs after gen_seeds() is called (lines 146-154). This means gen_seeds() receives None when rng_seed is None, while GPUTracker receives the newly generated random seed, causing inconsistent seeding behavior between seed generation and tracking. Move this initialization to before line 146 to ensure both gen_seeds() and GPUTracker use the same seed value.

Copilot uses AI. Check for mistakes.
@36000 36000 added this to the pyAFQ 3.0 milestone Jan 19, 2026
@36000
36000 merged commit 7a53d25 into tractometry:main Jan 27, 2026
14 of 15 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.

2 participants