-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix injection of added parameters (#1981)
### What kind of change does this PR introduce? The issue was that a YAML definition of an indicator was not able to inject (set) the `indexer` parameter on indicators that inherited from `IndexingIndicator` (i.e. indicators that rely on a class-level implementation of the indexing, instead of compute-level one). This reorganizes how these class-added arguments are handled. It also renames them "added" arguments instead of "injected" to clear the confusion. "injection" now only means an indicator argument that is set when creating a derived indicator (that what most YAML definitions do). "added" is an argument that is not in the compute function, but added by the class. The example YAML is modified and a test is added using this modification. ### Does this PR introduce a breaking change? No. The feature was not really documented and now it works instead of not.
- Loading branch information
Showing
5 changed files
with
95 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters