Skip to content

Commit

Permalink
fix: update _make_bus_demand_weighting usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lanesmith committed May 5, 2021
1 parent 6868623 commit a3cf50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Given a Case object, build a matrix of demand by (bus, hour) for this interval.
"""
function _make_bus_demand(case::Case, start_index::Int, end_index::Int)::Matrix
# Bus weighting
zone_to_bus_shares = _make_bus_demand_weighting(case, start_index, end_index)
zone_to_bus_shares = _make_bus_demand_weighting(case)

# Profiles
simulation_demand = Matrix(case.demand[start_index:end_index, 2:end])
Expand All @@ -90,7 +90,7 @@ function _make_bus_demand_flexibility_amount(
case::Case, demand_flexibility::DemandFlexibility, start_index::Int, end_index::Int
)::Matrix
# Bus weighting
zone_to_bus_shares = _make_bus_demand_weighting(case, start_index, end_index)
zone_to_bus_shares = _make_bus_demand_weighting(case)

# Demand flexibility profiles
simulation_demand_flex_amt = Matrix(
Expand Down

0 comments on commit a3cf50b

Please sign in to comment.