Standard Combiner Outputs (follow-on to 463)#501
Draft
elenya-grant wants to merge 3 commits intoNatLabRockies:developfrom
Draft
Standard Combiner Outputs (follow-on to 463)#501elenya-grant wants to merge 3 commits intoNatLabRockies:developfrom
elenya-grant wants to merge 3 commits intoNatLabRockies:developfrom
Conversation
10 tasks
Collaborator
Yes, I think it should be updated in all places that you mention and any others where |
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.
Standardize Combiner Outputs
Added standard outputs to the combiner (
rated_commodity_productionandcapacity_factor). This PR is intended to address a step outlined Issue #485 to eventually have finance models capture variation in lifetime performance. This PR focuses on the combiner, which is used as thecommodity_streamin some examples. The main changes are that the combiner is now inputrated_commodity_productionandcapacity_factorfrom each input stream, and also outputs the combined capacity factor and rated production capacity.The combined capacity factor is calculated as:
where
Section 1: Type of Contribution
Section 2: Draft PR Checklist
TODO:
GenericCombinerPerformanceModeltest_generic_combiner.pyto test new outputsH2IntegrateModel)commodity_unitstocommodity_rate_unitsin theGenericCombinerPerformanceConfigandGenericSplitterPerformanceConfigType of Reviewer Feedback Requested (on Draft PR)
Structural feedback:
Implementation feedback:
commodity_unitsin theGenericCombinerPerformanceConfigbe updated tocommodity_rate_unitsto be consistent with other naming? This would also require making this naming update in theGenericSplitterPerformanceConfigandGenericSplitterPerformanceModelOther 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
This PR completes a necessary step outlined in Issue #485
Section 4: Impacted Areas of the Software
Section 4.1: New Files
None
Section 4.2: Modified Files
h2integrate/core/h2integrate_model.pyH2IntegrateModel.connect_technologies(): added logic to connect added inputs ifcombiner in dest_tech.h2integrate/transporters/generic_combiner.pyGenericCombinerPerformanceModelsetup(): added inputs forrated_commodity_productionandcapacity_factorand outputs for the combinedrated_commodity_productionandcapacity_factorcompute(): added calculations to compute the combinedrated_commodity_productionandcapacity_factorh2integrate/transporters/test/test_generic_combiner.pytest_generic_combiner_performance_power: added subtests to test values of additional combined outputsSection 5: Additional Supporting Information
Section 6: Test Results, if applicable
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