Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
7a4bf722
Commit
7a4bf722
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
AthenaPoolUtilities: flake8 fixes
parent
e87d4fe4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Database/AthenaPOOL/AthenaPoolUtilities/python/DumperConfig.py
+5
-7
5 additions, 7 deletions
...ase/AthenaPOOL/AthenaPoolUtilities/python/DumperConfig.py
with
5 additions
and
7 deletions
Database/AthenaPOOL/AthenaPoolUtilities/python/DumperConfig.py
+
5
−
7
View file @
7a4bf722
...
@@ -6,10 +6,8 @@ import subprocess
...
@@ -6,10 +6,8 @@ import subprocess
from
PyDumper.Dumpers
import
get_dumper_fct
from
PyDumper.Dumpers
import
get_dumper_fct
from
AthenaPython
import
PyAthena
from
AthenaPython
import
PyAthena
from
PyUtils.fprint
import
fprintln
from
PyUtils.fprint
import
fprintln
import
builtins
printfunc
=
getattr
(
builtins
,
'
print
'
)
if
(
not
'
ATLAS_REFERENCE_TAG
'
in
globals
()
and
if
(
'
ATLAS_REFERENCE_TAG
'
not
in
globals
()
and
'
ATLAS_REFERENCE_TAG
'
in
os
.
environ
):
'
ATLAS_REFERENCE_TAG
'
in
os
.
environ
):
ATLAS_REFERENCE_TAG
=
os
.
environ
[
'
ATLAS_REFERENCE_TAG
'
]
ATLAS_REFERENCE_TAG
=
os
.
environ
[
'
ATLAS_REFERENCE_TAG
'
]
...
@@ -19,7 +17,7 @@ def find_file (fname,refPaths):
...
@@ -19,7 +17,7 @@ def find_file (fname,refPaths):
path
=
os
.
path
.
join
(
p
,
fname
)
path
=
os
.
path
.
join
(
p
,
fname
)
if
os
.
path
.
exists
(
path
):
if
os
.
path
.
exists
(
path
):
return
path
return
path
print
func
(
'
ERROR: Cannot find file:
'
,
fname
)
print
(
'
ERROR: Cannot find file:
'
,
fname
)
return
None
return
None
...
@@ -81,10 +79,10 @@ class Dumper (PyAthena.Alg):
...
@@ -81,10 +79,10 @@ class Dumper (PyAthena.Alg):
if
ret
!=
0
:
if
ret
!=
0
:
newvars
=
checknewvars
(
output
)
newvars
=
checknewvars
(
output
)
if
newvars
:
if
newvars
:
print
func
(
'
WARNING: new xAOD variables
'
,
newvars
)
print
(
'
WARNING: new xAOD variables
'
,
newvars
)
else
:
else
:
print
func
(
'
ERROR running diff with reference
'
)
print
(
'
ERROR running diff with reference
'
)
print
func
(
output
)
print
(
output
)
return
1
return
1
def
execute
(
self
):
def
execute
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment