Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from kratsg/master
Browse files Browse the repository at this point in the history
add variances in mixin for TH1*
  • Loading branch information
jpivarski authored Sep 19, 2018
2 parents 27f8583 + ee773ce commit 2378068
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions uproot_methods/classes/TH1.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def values(self):
def allvalues(self):
return self[:]

@property
def variances(self):
return self._fSumw2[1:-1]

@property
def allvariances(self):
return self._fSumw2[:]

@property
def numpy(self):
low = self._fXaxis._fXmin
Expand Down
2 changes: 1 addition & 1 deletion uproot_methods/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import re

__version__ = "0.0.7"
__version__ = "0.0.8"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 2378068

Please sign in to comment.