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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Scott Snyder
athena
Commits
cf9cc1c4
Commit
cf9cc1c4
authored
6 years ago
by
Tomasz Bold
Browse files
Options
Downloads
Patches
Plain Diff
Start implementation of moveSeqeunce
Former-commit-id:
37cd169c
parent
55bb7da9
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
Control/AthenaConfiguration/python/ComponentAccumulator.py
+16
-0
16 additions, 0 deletions
Control/AthenaConfiguration/python/ComponentAccumulator.py
with
16 additions
and
0 deletions
Control/AthenaConfiguration/python/ComponentAccumulator.py
+
16
−
0
View file @
cf9cc1c4
...
...
@@ -95,6 +95,22 @@ class ComponentAccumulator(object):
seq
+=
newseq
return
newseq
def
moveSequence
(
self
,
sequence
,
destination
):
"""
moves seqeunce from one sub-sequence to another, primary use case HLT Control Flow
"""
seq
=
findSubSequence
(
seq
,
sequence
)
if
seq
==
None
:
raise
ConfigurationError
(
"
Can not find sequence to move %s
"
%
sequence
)
dest
=
findSubSequence
(
seq
,
destination
)
if
dest
==
None
:
raise
ConfigurationError
(
"
Can not find destination sequence %s to move to
"
%
destination
)
removeSubSequence
(
seq
)
dest
+=
seq
return
seq
def
addEventAlgo
(
self
,
algo
,
sequence
=
None
):
if
not
isinstance
(
algo
,
ConfigurableAlgorithm
):
raise
TypeError
(
"
Attempt to add wrong type: %s as event algorithm
"
%
type
(
algo
).
__name__
)
...
...
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