Release v0.7
Release v0.7 is fresh from the oven with a few breaking API changes.
cmd/yoda
The cmd/rio2yoda, cmd/root2yoda and cmd/yoda2rio commands now support gzipped YODA files.
The cmd/yoda2rio is also more lenient when dealing with YODA objects that are not yet supported on the hbook side (Counter, S1D, ...) (thanks Lukas Heinrich for the report.)
fastjet
Bastian added the ability to plot the Voronoi diagram from a set of 2D-points.
hbook
hbook/yodacnv was modified to support the more lenient approach with regard to unsupported (yet!) YODA objects.
hplot
hplot has seen the most user-facing work:
- a new default style that is more in-line with current aesthetic standards (ie:
matplotlib-like) hplot.Newuses this new default style and thus is now able to ensure it won't fail loading the fontshplot.Newthus only returns*hplot.Plot, without anerrorvaluehplot.NewH1Dis also able to ensure no fonts-loading error will araise and thus only return a*hplot.H1D
So, where you were doing:
p, err := hplot.New()
if err != nil {
log.Fatal(err)
}
h, err := hplot.NewH1D(h1d)
if err != nil {
log.Fatal(err)
}you can now just write:
p := hplot.New()
h := hplot.NewH1D(h1d)pawgo
pawgo has been slightly updated to support plotting 2-dim histograms.
pawgo was also fixed to correctly handle YODA files converted to RIO (thanks Lukas Heinrich for the report.)
rootio
rootio gained 2 new commands:
rootio/cmd/root-diff: a command to print the differences between 2 ROOT files, including the content of theirTTrees,rootio/cmd/root-print: a command to print histograms contained in ROOT files into PDF, PNG, ... files.
rootio now also defines and exports the rootio.H1 and rootio.H2 interfaces that are implemented by the TH1x and TH2x (respectively) concrete types.