Skip to content

Commit

Permalink
no id
Browse files Browse the repository at this point in the history
  • Loading branch information
alemelis committed Nov 20, 2023
1 parent 916eb09 commit 91326ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/network.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function Network(
graph = SimpleDiGraph(length(config) + 1)

vessels = Dict()
for (i, vessel_config) in enumerate(config)
vessel = Vessel(vessel_config, i, blood, Ccfl)
for vessel_config in config
vessel = Vessel(vessel_config, blood, Ccfl)
add_edge!(graph, vessel.sn, vessel.tn)
vessels[(vessel.sn, vessel.tn)] = vessel
verbose && next!(prog)
Expand Down
4 changes: 1 addition & 3 deletions src/vessel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ mutable struct Vessel
label::SubString{String}

#Topological notation
ID::Int64
sn::Int64
tn::Int64

Expand Down Expand Up @@ -147,7 +146,7 @@ function radii(config::Dict{Any,Any})
end


function Vessel(config::Dict{Any,Any}, ID::Int64, b::Blood, Ccfl::Float64)
function Vessel(config::Dict{Any,Any}, b::Blood, Ccfl::Float64)
vessel_name = config["label"]
sn = config["sn"]
tn = config["tn"]
Expand Down Expand Up @@ -258,7 +257,6 @@ function Vessel(config::Dict{Any,Any}, ID::Int64, b::Blood, Ccfl::Float64)

Vessel(
vessel_name,
ID,
sn,
tn,
M,
Expand Down

0 comments on commit 91326ce

Please sign in to comment.