Skip to content
Snippets Groups Projects
Commit dbc1df9c authored by Julian Stürmer's avatar Julian Stürmer
Browse files

Change gamma in sim_impact from kwarg to arg

parent 88894f12
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ Simulate damage to overhead transmission lines in Texas caused by hurricane Ike
γ = 0.0004 # γ value to use in failure probabilities
S = 1 # numbering of realization/scenario
tl_failures = sim_impact(seg_data, γ=γ)
tl_failures = sim_impact(seg_data, γ)
#=
Optional: Plot time series of the impact of hurricane Ike for a specific realization (scenario).
......
#* Functions for modelling the impact of hurricanes on power grids.
#*------------------------------------------------------------------------------
function sim_impact(
seg_data::Dict{String,<:Any};
γ::Float64
)
function sim_impact(seg_data::Dict{String,<:Any}, γ::Float64)
tl_failures = Array{Tuple{String,Int64},1}() # array for line failures
### Go through overhead transmission lines and simulate until failure
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment