Skip to content

Commit

Permalink
add system capacity check
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed May 17, 2023
1 parent 2ebec1e commit a6275cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/hybrid/test_hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def test_hybrid_detailed_pv_only(site):
annual_energy_expected = 112401677
solar_only = deepcopy(technologies['pv'])
pv_plant = DetailedPVPlant(site=site, pv_config=solar_only)
assert pv_plant.system_capacity_kw == solar_only['system_capacity_kw']
pv_plant.simulate_power(1, False)
assert pv_plant._system_model.Outputs.annual_energy == approx(annual_energy_expected, 1e-2)
assert pv_plant._system_model.Outputs.capacity_factor == approx(25.66, 1e-2)
Expand Down

0 comments on commit a6275cc

Please sign in to comment.