Skip to content
Snippets Groups Projects
Commit cefde85e authored by Zineb Aly's avatar Zineb Aly
Browse files

correct file head

parent 17bcedbc
No related branches found
No related tags found
No related merge requests found
Pipeline #8416 passed with warnings
......@@ -375,13 +375,13 @@ class OfflineReader:
def header(self):
if self._header is None:
fobj = uproot.open(self._file_path)
if b'Head;1' in fobj.keys():
if 'Head' in fobj:
self._header = {}
for n, x in fobj['Head']._map_3c_string_2c_string_3e_.items():
print("{:15s} {}".format(n.decode("utf-8"),
x.decode("utf-8")))
self._header[n.decode("utf-8")] = x.decode("utf-8")
if b'Header;1' in fobj.keys():
else:
warnings.warn("Your file header has an unsupported format")
return self._header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment