Skip to content
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

Minor fix of blackjax import in fit_pathfinder function #443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aphc14
Copy link
Contributor

@aphc14 aphc14 commented Mar 29, 2025

Hi all, just a minor change for users who don't have JAX/BlackJAX installed.

Summary of changes:

  • Moved the import statement for blackjax to ensure it is only imported when needed.
  • Moved blackjax import statement to prevent import errors for users wanting to run pathfinder without JAX/BlackJAX installed.
  • Updated the fit function to specify the return type as az.InferenceData.

* Moved the import statement for blackjax to ensure it is only imported when needed.
* Moved blackjax import statement prevents import errors for users on Windows.
* Updated the fit function to specify the return type as az.InferenceData.
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.

1 participant