Skip to content

Commit

Permalink
allow expected_plant_costs to be missing in plant_config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredthomas68 committed Aug 8, 2023
1 parent 62d97d4 commit a82a54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hopp/eco/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run_orbit(plant_config, verbose=False, weather=None):

def adjust_orbit_costs(orbit_project, plant_config):

if plant_config["wind"]["expected_plant_cost"] != 'none':
if ("expected_plant_cost" in plant_config["wind"]) and (plant_config["wind"]["expected_plant_cost"] != 'none'):
wind_capex_multiplier = (plant_config["wind"]["expected_plant_cost"]*1E9)/orbit_project.total_capex
else:
wind_capex_multiplier = 1.0
Expand Down

0 comments on commit a82a54d

Please sign in to comment.