There is a newer version of the record available.

Published September 20, 2017 | Version v0.7
Software Open

go-hep/hep: Release v0.7

  • 1. CNRS/IN2P3

Description

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.New uses this new default style and thus is now able to ensure it won't fail loading the fonts
  • hplot.New thus only returns *hplot.Plot, without an error value
  • hplot.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

rootio gained 2 new commands:

  • rootio/cmd/root-diff: a command to print the differences between 2 ROOT files, including the content of their TTrees,
  • 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