[yoda-svn] r563 - in trunk: include/YODA pyext/yoda/include

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Mar 4 14:53:35 GMT 2013


Author: buckley
Date: Mon Mar  4 14:53:35 2013
New Revision: 563

Log:
Making the Plot type clear all its annotations on construction

Modified:
   trunk/include/YODA/Plot.h
   trunk/pyext/yoda/include/AnalysisObject.pyx

Modified: trunk/include/YODA/Plot.h
==============================================================================
--- trunk/include/YODA/Plot.h	Mon Mar  4 14:50:26 2013	(r562)
+++ trunk/include/YODA/Plot.h	Mon Mar  4 14:53:35 2013	(r563)
@@ -21,7 +21,9 @@
     /// Default constructor
     Plot()
       : AnalysisObject("Plot", "", "")
-    { }
+    {
+      clearAnnotations();
+    }
 
     //@}
 

Modified: trunk/pyext/yoda/include/AnalysisObject.pyx
==============================================================================
--- trunk/pyext/yoda/include/AnalysisObject.pyx	Mon Mar  4 14:50:26 2013	(r562)
+++ trunk/pyext/yoda/include/AnalysisObject.pyx	Mon Mar  4 14:53:35 2013	(r563)
@@ -25,6 +25,7 @@
         Key value pairs of metadata, returned as a Python dictionary.
 
         """
+        # TODO: It would be best if this was returned by reference so that it could also be *modified* as a dict
         ana = self._AnalysisObject().annotations()
         it = ana.begin()
         out_dict = {}


More information about the yoda-svn mailing list