Skip to content

Commit

Permalink
python print migration CondCore/EcalPlugins
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jul 21, 2018
1 parent 509583d commit a1634b2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CondCore/EcalPlugins/test/inspect.py
@@ -1,3 +1,4 @@
from __future__ import print_function
#
# I should write a decent test of the python binding...
#
Expand All @@ -11,10 +12,10 @@ def dumpSummaries(dbname):
# print log.getState()
iov = inspect.Iov(db,tag)
for x in iov.summaries():
print x[1],x[2],x[3]
print(x[1],x[2],x[3])
# print iov.trend("",[0,2,12])
except RuntimeError :
print " no iov? in", tag
print(" no iov? in", tag)

iov=0

Expand All @@ -26,10 +27,10 @@ def dumpContents(dbname):
try :
iov = inspect.Iov(db,tag)
for x in iov.list():
print x[1],x[2]
print inspect.PayLoad(db,x[0])
print(x[1],x[2])
print(inspect.PayLoad(db,x[0]))
except RuntimeError :
print " no iov? in", tag
print(" no iov? in", tag)

iov=0

Expand Down

0 comments on commit a1634b2

Please sign in to comment.