Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
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
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
IPSL
LMD
DPAO
Detection eddies
Commits
2e2762ac
Commit
2e2762ac
authored
1 year ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Polish
parent
03c02938
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Overlap/extract_component.py
+1
-2
1 addition, 2 deletions
Overlap/extract_component.py
Trajectories/draw_segments.py
+5
-4
5 additions, 4 deletions
Trajectories/draw_segments.py
Trajectories/segments.py
+2
-1
2 additions, 1 deletion
Trajectories/segments.py
with
8 additions
and
7 deletions
Overlap/extract_component.py
+
1
−
2
View file @
2e2762ac
...
...
@@ -34,13 +34,12 @@ else:
# assert input_suffix in {".gt", ".graphml"}
g
=
graph_tool
.
load_graph
(
sys
.
argv
[
1
])
g
.
set_directed
(
False
)
for
v
in
g
.
vertices
():
if
g
.
vp
.
name
[
v
]
==
int
(
sys
.
argv
[
2
]):
break
else
:
sys
.
exit
(
"
Node not found
"
)
g
.
set_directed
(
False
)
label
=
topology
.
label_out_component
(
g
,
v
)
g
.
set_vertex_filter
(
label
)
g
.
purge_vertices
()
...
...
This diff is collapsed.
Click to expand it.
Trajectories/draw_segments.py
+
5
−
4
View file @
2e2762ac
#!/usr/bin/env python3
"""
This script reads a graph of segments in graph-tool or graphml
format and creates the corresponding Graphviz file. If the graph has
cost values then the edges are labeled with them. If the option -t is
given then the label of each node tells which trajectory the segment
belongs to.
format and creates the corresponding Graphviz file. The node label is
the segment identifying number followed by the date index in
parentheses. If the graph has cost values then the edges are labeled
with them. If the option -t is given then the label of each node also
tells which trajectory the segment belongs to.
"""
...
...
This diff is collapsed.
Click to expand it.
Trajectories/segments.py
+
2
−
1
View file @
2e2762ac
...
...
@@ -43,7 +43,8 @@ t0 = t1
# e_overestim is not used in this script but it is useful to save it
# to the output graph of this script for further processing of the
# output graph by other scripts:
# output graph by other scripts. We assume that e_overestim.txt is in
# the same directory as the input edgelist:
g
.
graph_properties
[
"
e_overestim
"
]
=
g
.
new_graph_property
(
"
int
"
)
dir_edgelist
=
path
.
dirname
(
sys
.
argv
[
1
])
...
...
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