Skip to content

Commit

Permalink
fix comparison: filter() in py3 does not return list
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jul 13, 2021
1 parent 5f0b4df commit 6e93172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/RelMon/python/dqm_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def walk(self):
#print self.ls().keys()
first_run_dir = ""
try:
first_run_dir = filter(lambda k: "Run " in k, self.ls().keys())[0]
first_run_dir = list(filter(lambda k: "Run " in k, self.ls().keys()))[0]
except:
print("\nRundir not there: Is this a generic rootfile?\n")
rundir=first_run_dir
Expand Down

0 comments on commit 6e93172

Please sign in to comment.