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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
a66dfd6f
Commit
a66dfd6f
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix: correct call to `node_to_date_eddy`
parent
14ef373f
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
Overlap/plot_traj.py
+3
-2
3 additions, 2 deletions
Overlap/plot_traj.py
with
3 additions
and
2 deletions
Overlap/plot_traj.py
+
3
−
2
View file @
a66dfd6f
...
...
@@ -8,6 +8,7 @@ import itertools
import
numpy
as
np
from
matplotlib
import
patches
import
cartopy.crs
as
ccrs
import
report_graph
color_iter
=
itertools
.
cycle
((
'
#1f77b4
'
,
'
#aec7e8
'
,
'
#ff7f0e
'
,
'
#ffbb78
'
,
'
#2ca02c
'
,
'
#98df8a
'
,
...
...
@@ -37,7 +38,8 @@ def is_node_type(G, n, label):
elif
label
==
"
important
"
:
return
G
.
in_degree
[
n
]
==
0
or
G
.
out_degree
[
n
]
==
0
or
G
.
degree
[
n
]
>=
3
elif
isinstance
(
label
,
int
):
return
node_to_date_eddy
(
n
,
e_overestim
,
d_init
)[
"
date
"
]
==
label
return
report_graph
.
node_to_date_eddy
(
n
,
G
.
graph
[
"
e_overestim
"
])
\
[
"
date_index
"
]
==
label
def
plot_nbunch
(
G
,
nbunch
,
color
=
'
#1f78b4
'
,
label
=
None
,
ax
=
None
):
if
ax
is
None
:
ax
=
plt
.
gca
()
...
...
@@ -93,7 +95,6 @@ def animate_nbunch(G, nbunch):
date
+=
1
if
__name__
==
"
__main__
"
:
import
report_graph
import
argparse
import
sys
from
os
import
path
...
...
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