kratsg / optimization

Code for optimizing simple n-tuples
http://giordonstark.com/
MIT License
7 stars 9 forks source link

somethinga bout pileup weight being 0 and boolean #72

Closed kratsg closed 8 years ago

kratsg commented 8 years ago
return np.sum(events!=0).astype(float), np.sum(events).astype(float)`

[01:18]
hrmm

[01:18]
that's the bug

[01:18]
hrmmm

[Giordon Stark but if you change the line I linked... to..

[01:21]
return float(events.size), np.sum(events).astype(float)

[01:21]
and see if that fixes it with the pileup weight added, my guess is it does.

[01:22]
https://github.com/kratsg/Optimization/commit/0c9067d9ca5a88d5f8741adaa464e1b289fca474#diff-06f0ae61dbe721276333a254a24a044b

[01:22]
yeah, i wonder why it changed :confused:

[

mattleblanc commented 8 years ago

See #73