98 allow for processing of all available variables - #105
Merged
maxnutz merged 3 commits intoAug 27, 2026
Conversation
3 tasks
Contributor
Reviewer's GuideIntroduces an opt-out configuration for definitions_path that lets processing evaluate all variables in the mapping file while bypassing definition loading and unit conversion, with updated documentation and tests covering configuration, initialization, workflow, and iteration behavior. Flow diagram for definitions-disabled variable processingflowchart TD
A["Read definitions_path"] --> B{"definitions_path is False?"}
B -->|No| C["Load definitions and optional unit conversion"]
B -->|Yes| D["Skip definitions and unit conversion"]
C --> E["Iterate over dsd variables"]
D --> F["Iterate over mapping variables"]
E --> G["_execute_function_for_variable"]
F --> G
G --> H["calculate_variables_values"]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. If the mapping-file iteration or skipped unit conversion is wrong, the processor can write incorrect variable values to the output workbook. Reverting does not remove an already generated workbook, but the bounded output can be regenerated correctly by rerunning the workflow.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Short description of this pull request
Allow False as value for definitions_path to call all evaluations for all available variables in the respective mapping-value (mapping.default.yaml as default)
Checklist
Before asking for review, please make shure, the following steps are completed (whenever possible):
Sourcery-Bot starts to review your pull request, whenever it is created. This may take some time. After having finished these steps, please request for review in the Pull Request.
Summary by Sourcery
Allow processing all mapping-defined variables without requiring a definitions directory or performing unit conversion.
New Features:
definitions_path: Falseto evaluate every variable in the mapping file without unit conversion.Bug Fixes:
Enhancements:
Documentation:
definitions_path: Falseconfiguration option and its evaluation behavior.Tests: