Skip to content

Refactor starch scales to load from YAML asset file#47

Merged
AdenAthar merged 2 commits intodevfrom
yaml-starch-scales
Dec 16, 2025
Merged

Refactor starch scales to load from YAML asset file#47
AdenAthar merged 2 commits intodevfrom
yaml-starch-scales

Conversation

@AdenAthar
Copy link
Collaborator

  • Moved hardcoded starch scale data from StarchScales class to external YAML file
  • Added load_starch_scales() function to read Granny/assets/starch_scales.yml
  • Dynamically populate StarchScales class attributes from YAML at module load time
  • Reduced StarchArea.py by 102 lines by externalizing data
  • Improves maintainability: starch scales can now be updated without code changes

AdenAthar and others added 2 commits December 16, 2025 13:07
- Moved hardcoded starch scale data from StarchScales class to external YAML file
- Added load_starch_scales() function to read Granny/assets/starch_scales.yml
- Dynamically populate StarchScales class attributes from YAML at module load time
- Reduced StarchArea.py by 102 lines by externalizing data
- Improves maintainability: starch scales can now be updated without code changes
@AdenAthar AdenAthar merged commit 34d4873 into dev Dec 16, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant