ResultTools

This is a small module to ease importing Carlo results back into Julia. It contains the function

Carlo.ResultTools.dataframeFunction
ResultTools.dataframe(result_json::AbstractString)

Helper to import result data from a *.results.json file produced after a Carlo calculation. Returns a Tables.jl-compatible dictionary that can be used as is or converted into a DataFrame or other table structure. Observables and their errorbars will be converted to Measurements.jl measurements.

source

If we use ResultTools with DataFrames.jl to read out the results of the Ising example, it would be the following.

using Plots
using DataFrames
using Carlo.ResultTools

df = DataFrame(ResultTools.dataframe("example.results.json"))

plot(df.T, df.Energy; xlabel = "Temperature", ylabel="Energy per spin", group=df.Lx, legendtitle="L")
Example block output

In the plot we can nicely see how the model approaches the ground state energy at low temperatures.