Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
atlas-tdaq-software
CastorScript
Commits
a4677863
Commit
a4677863
authored
14 years ago
by
Wainer Vandelli
Browse files
Options
Downloads
Patches
Plain Diff
Fix merged name building
parent
52350a60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Script/MergedMigratedNew.py
+5
-4
5 additions, 4 deletions
Script/MergedMigratedNew.py
with
5 additions
and
4 deletions
Script/MergedMigratedNew.py
+
5
−
4
View file @
a4677863
#!/bin/env python
#!/bin/env python
__version__
=
'
$Revision
:
$
'
__version__
=
'
$Revision$
'
# $Source$
# $Source$
from
SFOFileNameParser
import
SFOFileNameParser
from
SFOFileNameParser
import
SFOFileNameParser
...
@@ -69,13 +69,14 @@ Merged file name is:
...
@@ -69,13 +69,14 @@ Merged file name is:
if
not
success
:
return
False
if
not
success
:
return
False
### Create the two type of name we expect (neglecting attempt number)
### Create the two type of name we expect (neglecting attempt number)
notmerged
=
os
.
path
.
basename
(
castorfile
).
splitext
()[
0
]
notmerged
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
castorfile
))[
0
]
notmerged
=
notmerged
.
replace
(
'
.daq.
'
,
'
.merge.
'
)
merged
=
'
.
'
.
join
(
notmerged
.
split
(
'
.
'
,
6
)[:
-
1
]
+
[
'
_SFO-ALL._0001
'
])
merged
=
'
.
'
.
join
(
notmerged
.
split
(
'
.
'
,
6
)[:
-
1
]
+
[
'
_SFO-ALL._0001
'
])
### Find all the files with the correct name
### Find all the files with the correct name
files
=
[
f
for
f
in
all_files
.
split
(
'
\n
'
)
files
=
[
f
for
f
in
all_files
.
split
(
'
\n
'
)
if
f
and
(
notmerged
in
f
or
merged
in
f
)]
if
f
and
(
notmerged
in
f
or
merged
in
f
)]
if
not
files
:
return
False
if
not
files
:
return
False
### Take the file with the highest attempt number
### Take the file with the highest attempt number
...
...
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