Enhancement: Automatically insert technology names in control strategy definitions#558
Merged
johnjasa merged 3 commits intoNatLabRockies:developfrom Feb 28, 2026
Merged
Conversation
jaredthomas68
approved these changes
Feb 27, 2026
Collaborator
jaredthomas68
left a comment
There was a problem hiding this comment.
This looks great, thanks!
johnjasa
approved these changes
Feb 28, 2026
48 tasks
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.
Automatically provide the technology name to the
model_inputswhencontrol_parametersis presentThis PR automatically replaces or provides the technology name to
control_parameterswhen it is present inmodel_inputsor adds it if it isn't present instead of relying on users replicating the name of the technology in a subdictionary.Section 1: Type of Contribution
Section 2: Draft PR Checklist
TODO:
Type of Reviewer Feedback Requested (on Draft PR)
Structural feedback:
Implementation feedback:
Other feedback:
Section 3: General PR Checklist
docs/files are up-to-date, or added when necessaryCHANGELOG.mdhas been updated to describe the changes made in this PRSection 3: Related Issues
Closes #305
Section 4: Impacted Areas of the Software
Section 4.1: New Files
N/A
Section 4.2: Modified Files
h2integrate/core/h2integrate_model.pyH2IntegrateModel.load_config: modifies the technology configuration file to add thetech_nameparameter for each of the provided technologies with acontrol_parametersdictionary.examples/test/test_all_examples.py::test_pyomo_heuristic_dispatch_example: Replace the incorrect name failure subtest and replace it with 2 new subtests to ensure incorrect names and no provided names both load successfully.examples/18_pyomo_heuristic_dispatch/tech_config_error_for_testing.yaml: removed now that it's obseleteexamples/18_pyomo_heuristic_dispatch/pyomo_heuristic_dispatch_error_for_testing.yaml: removed now that it's obseleteSection 5: Additional Supporting Information
N/A
Section 6: Test Results, if applicable
All tests pass with one modified test that has an obsolete subtest replaced.
Section 7 (Optional): New Model Checklist
docs/developer_guide/coding_guidelines.mdattrsclass to define theConfigto load in attributes for the modelBaseConfigorCostModelBaseConfiginitialize()method,setup()method,compute()methodCostModelBaseClasssupported_models.pycreate_financial_modelinh2integrate_model.pytest_all_examples.pydocs/user_guide/model_overview.mddocs/section<model_name>.mdis added to the_toc.yml