Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
efa70306
Commit
efa70306
authored
Nov 05, 2020
by
Oliver Majersky
Browse files
Adapt AodMetaDataReader.py to python 3.
parent
28cf8b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
PhysicsAnalysis/TopPhys/xAOD/TopConfiguration/python/AodMetaDataReader.py
View file @
efa70306
...
...
@@ -92,7 +92,7 @@ def loadDictionary():
tempPath
=
tempfile
.
mkdtemp
()
try
:
headerPath
=
os
.
path
.
join
(
tempPath
,
'AodMetaData.h'
)
with
open
(
headerPath
,
'w
b
'
)
as
f
:
with
open
(
headerPath
,
'w'
)
as
f
:
writeDictionaryHeader
(
f
)
ROOT
.
gROOT
.
LoadMacro
(
'%s+'
%
headerPath
)
finally
:
...
...
@@ -204,7 +204,7 @@ def dumpPlain(metaData, out):
continue
for
key
in
sorted
(
folderData
):
value
=
folderData
[
key
]
if
isinstance
(
value
,
basestring
):
if
isinstance
(
value
,
str
):
pass
elif
isinstance
(
value
,
numbers
.
Number
):
value
=
repr
(
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment