|
[Rivet-svn] rivet: Write out intermediate histogram files by default, with e...Rivet Mercurial rivet at projects.hepforge.orgThu Nov 26 08:15:02 GMT 2015
details: https://rivet.hepforge.org/hg/rivet/rev/f5a515599377 branches: release-2-4-x changeset: 4938:f5a515599377 user: Andy Buckley <andy at insectnation.org> date: Thu Nov 26 08:05:54 2015 +0000 description: Write out intermediate histogram files by default, with event interval of 10k. diffs (32 lines): --- a/ChangeLog Wed Nov 25 10:24:17 2015 +0000 +++ b/ChangeLog Thu Nov 26 08:05:54 2015 +0000 @@ -1,3 +1,7 @@ +2015-11-26 Andy Buckley <andy.buckley at cern.ch> + + * Write out intermediate histogram files by default, with event interval of 10k. + 2015-11-25 Andy Buckley <andy.buckley at cern.ch> * Protect make-plots against lock-up due to partial pstricks command when there are no data points. --- a/bin/rivet Wed Nov 25 10:24:17 2015 +0000 +++ b/bin/rivet Thu Nov 26 08:05:54 2015 +0000 @@ -94,8 +94,8 @@ "as the LCG Grid where tokens expire on a fixed wall-clock and can render long Rivet runs unable to write " "out the final histogram file (default = unlimited)") timinggroup.add_option("--histo-interval", dest="HISTO_WRITE_INTERVAL", type=int, - default=None, help="[experimental!] specify the number of events between histogram file updates. " - "Default is to only write out at the end of the run. Note that intermediate histograms will be those " + default=10000, help="[experimental!] specify the number of events between histogram file updates. " + "Set to 0 to only write out at the end of the run. Note that intermediate histograms will be those " "from the analyze step only: analysis finalizing is currently not executed until the end of the run.") parser.add_option_group(timinggroup) @@ -511,7 +511,7 @@ sys.exit(3) ## Write a histo file snapshot if appropriate - if opts.HISTO_WRITE_INTERVAL is not None: + if opts.HISTO_WRITE_INTERVAL is not None and opts.HISTO_WRITE_INTERVAL > 0: if evtnum % opts.HISTO_WRITE_INTERVAL == 0: ah.writeData(opts.HISTOFILE)
More information about the Rivet-svn mailing list |