Skip to content

Commit

Permalink
REMOVE: IN MIDDLE OF DEBUGGING
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Sep 8, 2020
1 parent 470cadf commit a2ac9e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pyhf/readxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def extract_error(hist):
bin uncertainties are then Poisson, and so the `sqrt(entries)`.
Args:
hist (uproot.rootio.TH1 object): The histogram
hist (`<dynamic>.Model_TH1F_v2`): The histogram
Returns:
list: The uncertainty for each bin in the histogram
Expand All @@ -47,8 +47,10 @@ def import_root_histogram(rootdir, filename, path, name, filecache=None):
else:
f = filecache[fullpath]
try:
print(f)
print(f"name: {name}")
hist = f[name]
except KeyError:
except KeyError or uproot4.deserialization.DeserializationError:
try:
hist = f[str(Path(path).joinpath(name))]
except KeyError:
Expand Down Expand Up @@ -152,6 +154,9 @@ def process_sample(
}
)
elif modtag.tag == 'ShapeSys':
print(modtag.tag)
print(modtag.attrib)
print(modtag.attrib['HistoName'])
# NB: ConstraintType is ignored
if modtag.attrib.get('ConstraintType', 'Poisson') != 'Poisson':
log.warning(
Expand Down

0 comments on commit a2ac9e8

Please sign in to comment.