go-hep/hep: Release v0.7
Description
Release v0.7
is fresh from the oven with a few breaking API changes.
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.)
Bastian added the ability to plot the Voronoi diagram from a set of 2D-points.
hbookhbook/yodacnv
was modified to support the more lenient approach with regard to unsupported (yet!) YODA
objects.
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.New
uses this new default style and thus is now able to ensure it won't fail loading the fontshplot.New
thus only returns*hplot.Plot
, without anerror
valuehplot.NewH1D
is 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
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.
Files
go-hep/hep-v0.7.zip
Files
(3.4 MB)
Name | Size | Download all |
---|---|---|
md5:b275e6812462746e6c56b3798dcad3d7
|
3.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/go-hep/hep/tree/v0.7 (URL)