Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BioFlow-Insight
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
shareFAIR
BioFlow-Insight
Commits
e37c9a29
Commit
e37c9a29
authored
5 months ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
Updated the search for executors and blocks to have them in a better order
parent
61c0317f
No related branches found
No related tags found
No related merge requests found
Pipeline
#14348
failed with stage
Stage:
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/root.py
+25
-13
25 additions, 13 deletions
src/root.py
with
25 additions
and
13 deletions
src/root.py
+
25
−
13
View file @
e37c9a29
...
@@ -227,23 +227,35 @@ class Root(Nextflow_Building_Blocks):
...
@@ -227,23 +227,35 @@ class Root(Nextflow_Building_Blocks):
self
.
extract_executors
()
self
.
extract_executors
()
#TODO i need to sort the execution order out
#This is to get the order of execution
code
=
self
.
get_code
()
position_2_thing_2_analyse
=
{}
position_2_thing_2_analyse
=
{}
for
block
in
self
.
blocks
:
for
block
in
self
.
blocks
:
pos
=
code
.
find
(
block
.
get_code
())
block_code
=
block
.
get_code
()
if
(
pos
!=-
1
):
found
=
False
position_2_thing_2_analyse
[
pos
]
=
block
while
(
not
found
or
len
(
block_code
)
==
0
):
code
=
code
.
replace
(
block
.
get_code
(),
"
a
"
*
len
(
block
.
get_code
()),
1
)
pos
=
code
.
find
(
block_code
)
else
:
if
(
pos
!=-
1
):
position_2_thing_2_analyse
[
pos
]
=
block
code
=
code
.
replace
(
block_code
,
"
a
"
*
len
(
block_code
),
1
)
found
=
True
else
:
block_code
=
block_code
[:
-
1
]
if
(
not
found
):
raise
Exception
(
"
This shouldn
'
t happen
"
)
raise
Exception
(
"
This shouldn
'
t happen
"
)
for
e
in
self
.
executors
:
for
e
in
self
.
executors
:
pos
=
code
.
find
(
e
.
get_code
())
e_code
=
e
.
get_code
()
if
(
pos
!=-
1
):
found
=
False
position_2_thing_2_analyse
[
pos
]
=
e
while
(
not
found
or
len
(
e_code
)
==
0
):
code
=
code
.
replace
(
e
.
get_code
(),
"
a
"
*
len
(
e
.
get_code
()))
pos
=
code
.
find
(
e_code
)
else
:
if
(
pos
!=-
1
):
raise
Exception
(
"
This shouldn
'
t happen
"
)
position_2_thing_2_analyse
[
pos
]
=
e
code
=
code
.
replace
(
e_code
,
"
a
"
*
len
(
e_code
),
1
)
found
=
True
else
:
e_code
=
e_code
[:
-
1
]
if
(
not
found
):
raise
Exception
(
"
This shouldn
'
t happen
"
)
sorted_position_2_thing_2_analyse
=
dict
(
sorted
(
position_2_thing_2_analyse
.
items
()))
sorted_position_2_thing_2_analyse
=
dict
(
sorted
(
position_2_thing_2_analyse
.
items
()))
for
key
in
sorted_position_2_thing_2_analyse
:
for
key
in
sorted_position_2_thing_2_analyse
:
...
...
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