BanditScheduler: Add emitter_pool and active attr; remove emitters attr #494
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently, the BanditScheduler has an
emitters
attr that returns the_active_arr
variable. This does not make much sense since BanditScheduler does not haveemitters
as input, and_active_arr
givesemitters
a different meaning from theemitters
attribute of Scheduler.Thus, this PR removes the
emitters
attr and instead addsemitter_pool
andactive
to indicate the pool of emitters in the scheduler and which ones are currently active, respectively.TODO
BanditScheduler.emitters
BanditScheduler.emitter_pool
BanditScheduler.active
Status
CONTRIBUTING.md
yapf
pytest
pylint
HISTORY.md