Skip to content

Commit

Permalink
Update test_hg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbasp22 committed Oct 15, 2024
1 parent 7419e5e commit 5980028
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_hg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ def test_diversion_calculate_potential():
head = 20 # ft
power = None
penstock_length = 50 # ft
hp_type = 'Diversion'
headloss_method= "Hazen-Williams"
hp_type = 'Diversion'

hp = calculate_hp_potential(flow= flow, rated_power= power, head= head,
pctime_runfull = 30,
penstock_headloss_calculation= True,
design_flow= None,
electricity_sell_price = 0.05,
resource_category= 'CanalConduit',
hydropower_type= hp_type, penstock_length= penstock_length,
penstock_headloss_method= headloss_method)

flow_column= 'discharge_cfs', annual_caclulation= True)
assert round(hp.rated_power, 0) == 4505


0 comments on commit 5980028

Please sign in to comment.