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

Simplify late binding of runopts on instantiated Runnables #140

Open
randomir opened this issue May 7, 2019 · 0 comments
Open

Simplify late binding of runopts on instantiated Runnables #140

randomir opened this issue May 7, 2019 · 0 comments
Labels
feature New feature or request

Comments

@randomir
Copy link
Member

randomir commented May 7, 2019

For example:

sa = hybrid.SimulatedAnnealingProblemSampler(sweeps=100)
...
sa.bind(sweeps=1000)
sa.partial(sweeps=1000)   # alternatively

would be a syntactic sugar for:

sa.next = functools.partial(sa.next, sweeps=1000)
@randomir randomir added the feature New feature or request label May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant