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

bootstrap.py: add XFEL-specific defaults #807

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

Conversation

dwpaley
Copy link
Contributor

@dwpaley dwpaley commented Oct 20, 2022

This is just something I was playing with. There are two things to consider here:

  • Thoughts on modifying bootstrap default options by intercepting the kwargs passed to the Builder constructor?
  • If the value in options.python is equal to the default (currently '27') I don't know if there is a clean way to decide whether that value was explicitly supplied by the user. We could set default=None and catch that value and set it to the real default, but then the parser can't tell the user what the default is. However in this case I think we can reasonably assume that no user is actually requesting 27, so the XFEL builder catches that value and resets it to 39.

I think these changes would be nice, but they're not urgent, so feel free to consider this a conversation starter on builder-specific bootstrap defaults :)

@dwpaley dwpaley requested review from bkpoon and phyy-nx October 20, 2022 17:45
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