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
6dba041d
Commit
6dba041d
authored
4 years ago
by
Frank Winklmeier
Browse files
Options
Downloads
Patches
Plain Diff
FileStager: enable flake8 and fix code
parent
f7215674
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Database/FileStager/python/FileStagerConfig.py
+1
-1
1 addition, 1 deletion
Database/FileStager/python/FileStagerConfig.py
Database/FileStager/python/FileStagerTool.py
+7
-8
7 additions, 8 deletions
Database/FileStager/python/FileStagerTool.py
with
8 additions
and
9 deletions
Database/FileStager/python/FileStagerConfig.py
+
1
−
1
View file @
6dba041d
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from
AthenaCommon.Configurable
import
ConfigurableAlgorithm
from
AthenaCommon.Constants
import
*
# for "INFO"
from
AthenaCommon.Constants
import
WARNING
class
FileStagerAlg
(
ConfigurableAlgorithm
):
# slots is a sequence of properties that the use is allowed to set
...
...
This diff is collapsed.
Click to expand it.
Database/FileStager/python/FileStagerTool.py
+
7
−
8
View file @
6dba041d
...
...
@@ -3,8 +3,7 @@
from
__future__
import
print_function
import
os
import
sys
,
string
from
datetime
import
datetime
import
sys
from
future
import
standard_library
standard_library
.
install_aliases
()
...
...
@@ -12,7 +11,7 @@ import subprocess
## Needed to correct ROOT behavior; see below
CWD
=
os
.
getcwd
()
import
ROOT
import
ROOT
# noqa: F401
## Importing gSystem may change the current directory to one of the
## command-line arguments; chdir to original directory to have
## predictable behavior
...
...
@@ -125,22 +124,22 @@ class FileStagerTool:
# last fallback
try
:
defaultTmpdir
=
os
.
environ
[
'
TMPDIR
'
]
except
Exception
as
inst
:
except
Exception
:
pass
# cern lxbatch
try
:
defaultTmpdir
=
os
.
environ
[
'
WORKDIR
'
]
except
Exception
as
inst
:
except
Exception
:
pass
# osg
try
:
defaultTmpdir
=
os
.
environ
[
'
OSG_WN_TMP
'
]
except
Exception
as
inst
:
except
Exception
:
pass
# lcg
try
:
defaultTmpdir
=
os
.
environ
[
'
EDG_WL_SCRATCH
'
]
except
Exception
as
inst
:
except
Exception
:
pass
# use given tmpdir
...
...
@@ -176,7 +175,7 @@ class FileStagerTool:
rfioPiece
=
self
.
sampleList
[
0
].
split
(
self
.
InfilePrefix
)
nPieces
=
len
(
rfioPiece
)
inFile
=
rfioPiece
[
nPieces
-
1
]
inFile
=
rfioPiece
[
nPieces
-
1
]
# noqa: F841
outFile
=
self
.
tmpSampleList
[
0
]
stderr
=
outFile
+
"
_stage.err
"
stdout
=
outFile
+
"
_stage.out
"
...
...
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