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
778fecaf
Commit
778fecaf
authored
6 months ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
First commit
parent
31f21930
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#14199
passed with stage
in 3 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/graph.py
+19
-1
19 additions, 1 deletion
src/graph.py
with
19 additions
and
1 deletion
src/graph.py
+
19
−
1
View file @
778fecaf
...
...
@@ -311,8 +311,26 @@ class Graph():
return
user_view
,
user_view_with_subworkflows
def
get_user_view_graph_georges_algo
(
self
,
relevant_processes
=
[]):
#For now i'm only gonna work from the flattened dico
self
.
initialise_flattened_dico
(
self
.
dico_process_dependency_graph
)
#self.initialise_flattened_dico(self.full_dico)
dico
=
self
.
dico_flattened
user_view
,
self
.
new_nodes_user_view
=
relev_user_view_builder
(
dico
,
relevant_modules
=
relevant_processes
)
with
open
(
self
.
get_output_dir
()
/
"
graphs/user_view.json
"
,
'
w
'
)
as
output_file
:
json
.
dump
(
user_view
,
output_file
,
indent
=
4
)
user_view_with_subworkflows
=
add_subworkflows_2_dico
(
self
.
dico_process_dependency_graph
,
user_view
)
with
open
(
self
.
get_output_dir
()
/
"
graphs/user_view_with_subworkflows.json
"
,
'
w
'
)
as
output_file
:
json
.
dump
(
user_view_with_subworkflows
,
output_file
,
indent
=
4
)
return
user_view
,
user_view_with_subworkflows
def
generate_user_view
(
self
,
relevant_processes
=
[],
render_graphs
=
True
):
user_view
,
user_view_with_subworkflows
=
self
.
get_user_view_graph
(
relevant_processes
=
relevant_processes
)
user_view
,
user_view_with_subworkflows
=
self
.
get_user_view_graph
_georges_algo
(
relevant_processes
=
relevant_processes
)
self
.
user_view_with_subworkflows
=
user_view_with_subworkflows
generate_graph
(
self
.
get_output_dir
()
/
'
graphs
'
/
"
user_view
"
,
user_view
,
label_edge
=
True
,
label_node
=
True
,
render_graphs
=
render_graphs
,
root
=
False
,
relevant_nodes
=
copy
.
deepcopy
(
relevant_processes
))
generate_graph
(
self
.
get_output_dir
()
/
'
graphs
'
/
"
user_view_with_subworkflows
"
,
user_view_with_subworkflows
,
label_edge
=
True
,
label_node
=
True
,
render_graphs
=
render_graphs
,
root
=
False
,
relevant_nodes
=
copy
.
deepcopy
(
relevant_processes
))
...
...
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