|
[Rivet-svn] r1902 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Oct 14 08:28:07 BST 2009
Author: hoeth Date: Wed Oct 14 08:28:07 2009 New Revision: 1902 Log: As we don't have titles in the aida files anymore, flat2aida shouldn't crash if it doesn't find one in the dat file. Modified: trunk/bin/flat2aida Modified: trunk/bin/flat2aida ============================================================================== --- trunk/bin/flat2aida Tue Oct 13 13:41:34 2009 (r1901) +++ trunk/bin/flat2aida Wed Oct 14 08:28:07 2009 (r1902) @@ -70,6 +70,8 @@ if self.description.has_key("AidaPath"): path = self.description["AidaPath"] f.write(' <dataPointSet name="%s" dimension="2"\n' % (os.path.basename(path))) + if not self.description.has_key('Title'): + self.description['Title'] = "" f.write(' path="%s" title="%s">\n' % (os.path.dirname(path), htmlescape(self.description['Title']))) if self.description.has_key("XLabel") and self.description["XLabel"] is not None: f.write(' <dimension dim="0" title="%s" />\n' % htmlescape(self.description['XLabel']))
More information about the Rivet-svn mailing list |