|
[Rivet] aidamergeDaniel Weyh weyh at physik.hu-berlin.deSat Aug 20 12:27:50 BST 2011
Dear Hannes, > Dear Riveties > > adding several aida files works fine, only in some cases I get the error: > > Traceback (most recent call last): > File "./aidamerge", line 65, in <module> > sum_err2 += h.getBin(i).getErr()**2 > OverflowError: (34, 'Numerical result out of range') > > I guess it comes when a histo is not properly filled (fro example when a ratio is taken). > Is there a way to prevent these error message, and to continue with the program ? I added a patch to catch the exception, use float('inf') during summing up and in the write out step this 'inf' is converted to a vee..eery large float. Does this work for you? @others: Is this the way it should work - or should we somehow exclude such bins?!? Cheers, Daniel
More information about the Rivet mailing list |