Skip to content

Progress bar fix for PF #457

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

Merged
merged 1 commit into from
Apr 12, 2025
Merged

Progress bar fix for PF #457

merged 1 commit into from
Apr 12, 2025

Conversation

fonnesbeck
Copy link
Member

The final state is now updated correctly for the progress bar when using Pathfinder.

Closes #456

@fonnesbeck fonnesbeck requested a review from Copilot April 12, 2025 18:30
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

pymc_extras/inference/pathfinder/pathfinder.py:1568

  • Verify that num_paths reliably represents the final progress state to prevent potential off-by-one issues in the progress bar update.
progress.update(task, completed=num_paths, description="Completed")

@fonnesbeck fonnesbeck requested a review from zaxtax April 12, 2025 18:31
Copy link
Contributor

@zaxtax zaxtax left a comment

Choose a reason for hiding this comment

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

LGTM!

@zaxtax zaxtax merged commit 4d65ea0 into pymc-devs:main Apr 12, 2025
5 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.

Pathfinder progress bar inaccurate final state
2 participants