|
[yoda-svn] yoda: 2 new changesetsYODA Mercurial yoda at projects.hepforge.orgFri Dec 4 17:15:02 GMT 2015
details: https://yoda.hepforge.org/hg/yoda/rev/960e7865761f branches: changeset: 1182:960e7865761f user: Andy Buckley <andy at insectnation.org> date: Mon Nov 23 23:29:17 2015 +0000 description: Plotting cycling on default colors and linestyles details: https://yoda.hepforge.org/hg/yoda/rev/dd7023f74ef6 branches: changeset: 1183:dd7023f74ef6 user: Andy Buckley <andy at insectnation.org> date: Fri Dec 04 16:54:25 2015 +0000 description: Add yoda.HAS_ROOT_SUPPORT flag, for API user convenience. diffs (truncated from 83 to 50 lines): --- a/ChangeLog Sun Nov 22 18:23:17 2015 +0000 +++ b/ChangeLog Fri Dec 04 16:54:25 2015 +0000 @@ -1,3 +1,7 @@ +2015-12-04 Andy Buckley <andy.buckley at cern.ch> + + * Add yoda.HAS_ROOT_SUPPORT flag, for API user convenience. + 2015-11-22 Andy Buckley <andy.buckley at cern.ch> * Version 1.5.6! --- a/bin/yodacnv Sun Nov 22 18:23:17 2015 +0000 +++ b/bin/yodacnv Fri Dec 04 16:54:25 2015 +0000 @@ -3,7 +3,10 @@ """\ %prog <infile> <outfile> -Convert between YODA-supported data formats (.yoda, .aida, .dat) +Convert between natively YODA-supported data formats (.yoda, .aida, .dat) + +TODO: + * Support reading/writing from ROOT... or wait for native ROOT I/O via Reader/Writer classes? """ import yoda, os, sys, optparse, re --- a/pyext/yoda/__init__.py Sun Nov 22 18:23:17 2015 +0000 +++ b/pyext/yoda/__init__.py Fri Dec 04 16:54:25 2015 +0000 @@ -11,9 +11,10 @@ ## Try to pull in optional ROOT compatibility try: import yoda.root + HAS_ROOT_SUPPORT = True # TODO: remove def to_root(ao): print "yoda.to_root() is deprecated: use yoda.root.to_root()" return yoda.root.to_root(ao) except: - pass + HAS_ROOT_SUPPORT = False --- a/pyext/yoda/plotting.py Sun Nov 22 18:23:17 2015 +0000 +++ b/pyext/yoda/plotting.py Fri Dec 04 16:54:25 2015 +0000 @@ -312,7 +312,7 @@ # TODO: rename to be more obviously an ~internal helper -def plot_hist_on_axes_1d(axmain, axratio, h, href=None): +def plot_hist_on_axes_1d(axmain, axratio, h, href=None, default_color="black", default_linestyle="-"): if "plt" not in dir(): mpl, plt = setup_mpl() @@ -321,7 +321,7 @@
More information about the yoda-svn mailing list |