Skip to content

Commit

Permalink
minor stylastic change
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Nov 24, 2020
1 parent 07f7527 commit a7c58c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function ising_graph(instance::Union{String, Dict}, L::Int, β::Number=1)
if typeof(instance) == String
ising = CSV.File(instance, types=[Int, Int, Float64], comment = "#")
else
ising = [ (first(c), last(c), J) for (c, J) instance ]
ising = [ (i, j, J) for ((i, j), J) instance ]
end

ig = MetaGraph(L, 0.0)
Expand Down

0 comments on commit a7c58c0

Please sign in to comment.