-
Notifications
You must be signed in to change notification settings - Fork 27
Enhancement: Convert supported_models to enforce actual class names
#468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RHammond2
wants to merge
48
commits into
NatLabRockies:develop
Choose a base branch
from
RHammond2:enhancement/supported-models
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
82fc2d2
replace resource model naming conventions and first third of converte…
RHammond2 334cccf
fix broken import
RHammond2 8e3b99a
replce hopp shorthand with class name
RHammond2 37a3dc1
iron -> IronComponent
RHammond2 1f65e64
update iron mine models
RHammond2 3d7f21c
update iron plant
RHammond2 90d0fc8
update martin iron model
RHammond2 94bfe45
replace rosner models
RHammond2 613dada
convert ng/h2 EAF models
RHammond2 3698d67
convert reverse osmosis desal
RHammond2 96b0341
convert ammonia syn loop models
RHammond2 6c79c85
convert steel converter models
RHammond2 767e531
update smr methonal models
RHammond2 04b9234
update co2 methanol converters
RHammond2 25ca474
update direct ocean capture converters
RHammond2 caa59ba
update OAE converters
RHammond2 3b363f9
update geoh2 models
RHammond2 9faf733
update ng converters
RHammond2 522a2e3
cable -> CablePerformanceModel
RHammond2 dba6fa0
Revert "cable -> CablePerformanceModel"
RHammond2 9a20bd9
replace summers
RHammond2 2b5c0fb
update pysam battery storage model
RHammond2 4c24a1e
update storage auto sizing
RHammond2 0589de1
update cavern storage
RHammond2 83ced4f
update mchtol and pipe storage
RHammond2 a9a86ac
update atb battery
RHammond2 c79a627
update generic storage models
RHammond2 8825d88
fix import
RHammond2 6781093
update controller model references
RHammond2 9725983
convert dispatch model names
RHammond2 23f3336
convert grid model names
RHammond2 f3b0312
replace ProFastComp naming
RHammond2 31526d3
fix misapplied hopp name change
RHammond2 9b9e943
convert combiner, splitter and transport performance model names
RHammond2 5dbc647
update iron transport cost component model naming
RHammond2 8744b0e
replce feedstock naming, and update feedstock model check
RHammond2 62a013f
reinstate subsystem naming conventions
RHammond2 421fc01
update changelog
RHammond2 9c61966
merge and resolve conflicts from develop
RHammond2 046e88c
update gitignore for more examples outputs
RHammond2 f7684fe
fix bad merge conflict resolutions for mult-site examples
RHammond2 0df95a8
fix new examples
RHammond2 e09d0eb
Merge branch 'develop' into enhancement/supported-models
RHammond2 70d3bbf
merge develop and fix conflicts
RHammond2 1374d5a
Merge branch 'develop' into enhancement/supported-models
RHammond2 51e2b1e
update new iron example and remove duplicate key
RHammond2 b063795
merge develop and fix conflicts
RHammond2 9b154de
Merge branch 'develop' into enhancement/supported-models
johnjasa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,14 +165,14 @@ Here's what the updated `supported_models.py` file looks like with our new solar | |
| from h2integrate.converters.solar.solar_pysam import PYSAMSolarPlantPerformanceComponent | ||
|
|
||
| supported_models = { | ||
| "pysam_solar_plant_performance" : PYSAMSolarPlantPerformanceComponent, | ||
| "PYSAMSolarPlantPerformanceModel" : PYSAMSolarPlantPerformanceComponent, | ||
|
|
||
| "run_of_river_hydro_performance": RunOfRiverHydroPerformanceModel, | ||
| "run_of_river_hydro_cost": RunOfRiverHydroCostModel, | ||
| "eco_pem_electrolyzer_performance": ECOElectrolyzerPerformanceModel, | ||
| "singlitico_electrolyzer_cost": SingliticoCostModel, | ||
| "basic_electrolyzer_cost": BasicElectrolyzerCostModel, | ||
| "custom_electrolyzer_cost": CustomElectrolyzerCostModel, | ||
| "RunOfRiverHydroPerformanceModel": RunOfRiverHydroPerformanceModel, | ||
| "RunOfRiverHydroCostModel": RunOfRiverHydroCostModel, | ||
| "ECOElectrolyzerPerformanceModel": ECOElectrolyzerPerformanceModel, | ||
| "SingliticoCostModel": SingliticoCostModel, | ||
| "BasicElectrolyzerCostModel": BasicElectrolyzerCostModel, | ||
| "CustomElectrolyzerCostModel": CustomElectrolyzerCostModel, | ||
|
Comment on lines
+168
to
+175
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please modify the docs around this section to make it clear that the string name just maps directly to the class name here? And say this is the name used in the input yaml files? |
||
|
|
||
| ... | ||
| } | ||
|
|
@@ -228,7 +228,7 @@ If you're adding a technology where this makes sense, you can follow the same st | |
| For now, modify a single the `create_technology_models.py` file to include your new technology as such: | ||
|
|
||
| ```python | ||
| combined_performance_and_cost_model_technologies = ['hopp', 'h2_storage', '<your_tech_here>'] | ||
| combined_performance_and_cost_model_technologies = ['HOPPComponent', 'h2_storage', '<your_tech_here>'] | ||
|
|
||
| # Create a technology group for each technology | ||
| for tech_name, individual_tech_config in self.technology_config['technologies'].items(): | ||
|
|
||
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!