|
[Rivet] [Rivet-svn] r2974 - trunk/binFrank Siegert frank.siegert at cern.chSat Feb 26 00:01:34 GMT 2011
> Author: fsiegert > Date: Fri Feb 25 22:18:33 2011 > New Revision: 2974 > > Log: > Re-instate original analysis sorting in rivet-mkhtml, but move MC_* analyses to the back. Moving MC_* analyses to the back doesn't seem to work here, and I don't understand why. Any Python guru have an idea? Cheers, Frank > > Modified: > trunk/bin/rivet-mkhtml > > Modified: trunk/bin/rivet-mkhtml > ============================================================================== > --- trunk/bin/rivet-mkhtml Fri Feb 25 13:19:13 2011 (r2973) > +++ trunk/bin/rivet-mkhtml Fri Feb 25 22:18:33 2011 (r2974) > @@ -124,10 +124,9 @@ > reffiles.append(reffile) > > def anasort(name): > - if len(name.split("_"))==3 and not name.startswith("MC"): > - if name.split("_")[2].startswith("S"): > - return name.split("_")[2][1:] > - return "0"+name > + if name.startswith("MC"): > + return "0"+name > + return name.split("_")[1:] > analyses=sorted(analyses, key=anasort, reverse=True) > > > _______________________________________________ > Rivet-svn mailing list > Rivet-svn at projects.hepforge.org > http://www.hepforge.org/lists/listinfo/rivet-svn
More information about the Rivet mailing list |