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
Yeonju Go
athena
Commits
23e4f1e5
Commit
23e4f1e5
authored
6 years ago
by
Aaron Webb
Browse files
Options
Downloads
Patches
Plain Diff
Change config script to read from cvmfs release directory rather than afs symlinks
Former-commit-id: 30aa5051424def3edbd3abaa3ace2450de58fb25
parent
8d6a8949
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
DataQuality/DataQualityConfigurations/scripts/UploadDQAMITag.py
+12
-21
12 additions, 21 deletions
...ality/DataQualityConfigurations/scripts/UploadDQAMITag.py
with
12 additions
and
21 deletions
DataQuality/DataQualityConfigurations/scripts/UploadDQAMITag.py
+
12
−
21
View file @
23e4f1e5
...
@@ -5,15 +5,13 @@
...
@@ -5,15 +5,13 @@
# 10-Sep-2010, Peter Onyisi <ponyisi@cern.ch>
# 10-Sep-2010, Peter Onyisi <ponyisi@cern.ch>
#
#
# Script for uploading a new DQ configuration to AMI "h" tag
# Script for uploading a new DQ configuration to AMI "h" tag
# ASSUMPTION: the binary DQ configurations
are in AFS; they
have the following
# ASSUMPTION: the binary DQ configurations have the following
# directory structure:
# directory structure:
# $BASEDIR / Cosmics / cosmics_minutes10.current.hcfg
# $BASEDIR / cosmics_minutes10.hcfg
# / cosmics_minutes30.current.hcfg
# / cosmics_minutes30.hcfg
# / cosmics_run.current.hcfg
# / cosmics_run.hcfg
# / Collisions / collisions_*current.hcfg
# / collisions_*.hcfg
# / HeavyIons / heavyions_*current.hcfg
# / heavyions_*.hcfg
# and that the *.current.hcfg files are valid symlinks to files in the
# respective directories.
import
sys
,
os
import
sys
,
os
...
@@ -86,7 +84,7 @@ def update_dict_for_configs(updict, indir):
...
@@ -86,7 +84,7 @@ def update_dict_for_configs(updict, indir):
print
'
Looking for configurations in subdirectories of
'
,
indir
print
'
Looking for configurations in subdirectories of
'
,
indir
types
=
[
'
minutes10
'
,
'
minutes30
'
,
'
run
'
]
types
=
[
'
minutes10
'
,
'
run
'
]
searchparams
=
[(
'
Cosmics
'
,
'
cosmics
'
),
(
'
Collisions
'
,
'
collisions
'
),
searchparams
=
[(
'
Cosmics
'
,
'
cosmics
'
),
(
'
Collisions
'
,
'
collisions
'
),
(
'
HeavyIons
'
,
'
heavyions
'
)]
(
'
HeavyIons
'
,
'
heavyions
'
)]
...
@@ -98,19 +96,12 @@ def update_dict_for_configs(updict, indir):
...
@@ -98,19 +96,12 @@ def update_dict_for_configs(updict, indir):
filepathdict
[
dir1
]
=
{}
filepathdict
[
dir1
]
=
{}
for
t
in
types
:
for
t
in
types
:
print
'
'
,
t
,
'
...
'
,
print
'
'
,
t
,
'
...
'
,
fname
=
os
.
path
.
join
(
basedir
,
dir1
,
fname
=
os
.
path
.
join
(
basedir
,
'
%s_%s.hcfg
'
%
(
fn
,
t
))
'
%s_%s.current.hcfg
'
%
(
fn
,
t
))
if
os
.
access
(
fname
,
os
.
R_OK
):
if
os
.
access
(
fname
,
os
.
R_OK
):
print
'
found,
'
,
print
'
found %s
'
%
(
dir1
)
if
os
.
path
.
islink
(
fname
)
and
os
.
path
.
isfile
(
fname
):
if
os
.
path
.
isfile
(
fname
):
realname
=
os
.
readlink
(
fname
)
filepathdict
[
dir1
][
t
]
=
fname
if
not
os
.
path
.
isabs
(
realname
):
filelist
.
append
(
fname
)
realname
=
os
.
path
.
join
(
os
.
path
.
dirname
(
fname
),
realname
)
print
'
is symlink to
'
,
realname
filepathdict
[
dir1
][
t
]
=
realname
filelist
.
append
(
realname
)
else
:
print
'
but is not valid symlink
'
else
:
else
:
print
'
not found
'
print
'
not found
'
if
filepathdict
[
dir1
]
==
{}:
if
filepathdict
[
dir1
]
==
{}:
...
...
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