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

reduce typing to add enable/disable vary/target tag/id in xdeps.Optimizer #492

Closed
rdemaria opened this issue Apr 17, 2024 · 1 comment
Closed

Comments

@rdemaria
Copy link
Contributor

Proposals

  • opt.enable(targets="ip",vary=[2,3]).disable(targets="phase",vary=["kqx.l1"]).step(...) : permanent
  • opt.step(.., enable_targets="ip",vary=[2,3], disable_targets="phase",vary=["kqx.l1"]) : temporary in the step

Argument of enable/disable:

  • if is list/tuple list of arguments
  • elif integer arguments is id
  • else argment is tag
@giadarol
Copy link
Member

Implemented

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

No branches or pull requests

2 participants