RFC, WIP: proposal to add optional steps to config #215
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.
Request for Comment
This is another issue-as-PR, with changes in this PR serving as a demonstration of the proposed solution.
For optional Pipeline steps like
find_breaks, andflag_channels_fixed_threshold, I'm trying to think of a way to.The current behavior
find_breaks.find_breaksis not in our default configs. Thus the user must know that this step is an option, and how to add it to the config... E.g. they have to know to add either...or
to the config. They can't just add this step as an empty key to the config, like
find_breaks:Because the pipeline doesn't currently know how to handle this.
flag_channels_fixed_threshold.This is not in our default configs. The user must know that this step is an option, and how to add it to the config. Unlike
find_breakshowever, simply adding this step as an empty key DOES work, e.g.:flag_channels_fixed_threshold:will run this step with the default
thresholdvalue.Proposal
We add these optional pipeline steps as keys to our default configs, but without any values assigned to them, e.g.
I propose that the pipeline skip any step that exists as empty keys in the config.. thus, these steps will be skipped by default.
find_breaksas an example, If the users want to run the step with the default values, they can doOR block-style syntax:
I'm cautiously optimistic that this is an intuitive approach to our config. But comments are welcome and requested!