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
964230af
Commit
964230af
authored
4 months ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
Fix weird bug which wasn't connecting processes in rewritting
parent
90f3f338
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#14386
failed with stage
Stage:
in 2 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/workflow.py
+16
-3
16 additions, 3 deletions
src/workflow.py
with
16 additions
and
3 deletions
src/workflow.py
+
16
−
3
View file @
964230af
...
...
@@ -734,10 +734,16 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
subworkflow_clusters_to_add
,
subworkflow_cluster_calls_to_add
=
[],
[]
index_cluster
=
0
for
elements
in
clusters
:
#Check that there is at least one process in cluster
at_least_one_process
=
False
for
e
in
elements
:
if
(
e
.
get_type
()
==
"
Process
"
):
at_least_one_process
=
True
#Only create the subworkflows for clusters with more than one element
processes_added
=
[]
things_added_in_cluster
=
[]
if
(
len
(
elements
)
>
1
):
if
(
len
(
elements
)
>
1
and
at_least_one_process
):
name
,
body
,
take
,
emit
=
""
,
""
,
""
,
""
first_element
=
True
for
ele
in
elements
:
...
...
@@ -781,6 +787,7 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
code
=
code
.
replace
(
ele
.
get_code
(
get_OG
=
True
),
""
,
1
)
#Ignore these cases
#TODO -> you should be able to remove this
if
(
ele
.
get_code
()[:
4
]
not
in
[
"
emit
"
,
"
take
"
]):
origins
=
ele
.
get_origins
()
for
o
in
origins
:
...
...
@@ -839,8 +846,14 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
new_param_names
,
index
,
old_param_names
=
[],
1
,
[]
for
param
in
takes_param
:
param_name
=
f
"
param_
{
name
}
_
{
index
}
"
new_param_names
.
append
(
param_name
)
old_param_names
.
append
(
param
.
get_code
())
#Here if the input is a channel -> we keep the same name for readibility
#It also solves a bug described on the 18/02/2025
if
(
param
.
get_type
()
!=
'
Channel
'
):
new_param_names
.
append
(
param_name
)
old_param_names
.
append
(
param
.
get_code
())
else
:
new_param_names
.
append
(
param
.
get_code
())
old_param_names
.
append
(
param
.
get_code
())
index
+=
1
if
(
len
(
new_param_names
)
>
0
):
temp
=
'
\n
'
.
join
(
new_param_names
)
...
...
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