Skip to content

Commit

Permalink
Add EMI.start_cap(tm::TransmissionMode) (not tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellemo committed Jun 19, 2024
1 parent 5f01abb commit 1e1182e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/EMIExt/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ end
EMI.investment_data(tm::EMG.TransmissionMode) =
tm.data[findfirst(data -> typeof(data) <: InvestmentData, tm.data)]

EMI.investment_data(n::EMG.TransmissionMode, field::Symbol) = getproperty(investment_data(n), field)
EMI.investment_data(n::EMG.TransmissionMode, field::Symbol) = getproperty(investment_data(n), field)


EMI.start_cap(tm::EMG.TransmissionMode, t_inv, inv_data::NoStartInvData, cap) =
capacity(tm, t_inv)

0 comments on commit 1e1182e

Please sign in to comment.