Skip to content

Commit 0ad13ca

Browse files
committed
0-index python objects
1 parent dcec0e2 commit 0ad13ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fluxdiagrams.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function makefluxdiagrams(bsol,ts;centralspecieslist=Array{String,1}(),superimpo
343343
end
344344
end
345345

346-
graph = pydot.graph_from_dot_data(graph.create_dot(prog="dot").decode("utf-8"))[1]
346+
graph = pydot.graph_from_dot_data(graph.create_dot(prog="dot").decode("utf-8"))[0]
347347

348348
for t in 1:length(ts)
349349
slope = -maximumnodepenwidth / log10(concentrationtol)
@@ -355,7 +355,7 @@ function makefluxdiagrams(bsol,ts;centralspecieslist=Array{String,1}(),superimpo
355355
species_string = string("\"",species.name,"\"")
356356
end
357357

358-
node = graph.get_node(species_string)[1]
358+
node = graph.get_node(species_string)[0]
359359
concentration = concs[index,t] / maxconcentration
360360
if concentration < concentrationtol
361361
penwidth = 0.0
@@ -399,7 +399,7 @@ function makefluxdiagrams(bsol,ts;centralspecieslist=Array{String,1}(),superimpo
399399
product_string = string("\"",product.name,"\"")
400400
end
401401

402-
edge = graph.get_edge(reactant_string,product_string)[1]
402+
edge = graph.get_edge(reactant_string,product_string)[0]
403403

404404
speciesrate = speciesrates[reactantindex,productindex,t] / maxspcrate
405405
if speciesrate < 0

0 commit comments

Comments
 (0)