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

Add a download flag to get_bridgestan_path #236

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

WardBrian
Copy link
Collaborator

Closes #220 (@avehtari)

This adds a flag download to all the interfaces' get_bridgestan_path functions. The default is true, which is the previous behavior. Setting to false allows you to inspect the current value without triggering a download if it is not found.

Internally we always use the default value, but some users may want to check if their custom installation is working without triggering a download if it isn't.

@WardBrian WardBrian added the enhancement New feature or request label Jun 17, 2024
@WardBrian WardBrian requested a review from roualdes June 17, 2024 15:11
Copy link
Owner

@roualdes roualdes left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks for addressing this request. Happy to move forward as is.

Here's some nitpicks, but they're more like things I noticed while looking over this PR.

  • Is there anything I'm missing about having lines likepath = CURRENT_BRIDGESTAN inside the try-catch versus outside?
  • I see now that R/Python have verify_bridgestan_path, while Julia has validate_bridgestan_path, but it seems like they do the same thing.

julia/src/compile.jl Outdated Show resolved Hide resolved
Copy link
Owner

@roualdes roualdes left a comment

Choose a reason for hiding this comment

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

Thanks much!

@WardBrian WardBrian merged commit 6549ff9 into main Jun 18, 2024
19 checks passed
@WardBrian WardBrian deleted the feature/220-download-flag-to-get-path branch June 18, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to check if bridgestan sources are already available
2 participants