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
2ff63318
Commit
2ff63318
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Remove useless variables
parent
177dd52f
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
cost_function.py
+0
-8
0 additions, 8 deletions
cost_function.py
with
0 additions
and
8 deletions
cost_function.py
+
0
−
8
View file @
2ff63318
...
@@ -125,9 +125,6 @@ for yr in range(1993, 2019):
...
@@ -125,9 +125,6 @@ for yr in range(1993, 2019):
# calculate the indexes and dates
# calculate the indexes and dates
first
=
report_graph
.
node_to_date_eddy
(
segment
[
0
],
e_overestim
)
first
=
report_graph
.
node_to_date_eddy
(
segment
[
0
],
e_overestim
)
# get days since 1950
first_days
=
first
[
'
date_index
'
]
# get year
# get year
first_date
=
datetime
.
date
(
1950
,
1
,
1
)
\
first_date
=
datetime
.
date
(
1950
,
1
,
1
)
\
+
datetime
.
timedelta
(
first
[
'
date_index
'
])
+
datetime
.
timedelta
(
first
[
'
date_index
'
])
...
@@ -140,12 +137,7 @@ for yr in range(1993, 2019):
...
@@ -140,12 +137,7 @@ for yr in range(1993, 2019):
# start processing
# start processing
first_pos
=
[]
last_pos
=
[]
last
=
report_graph
.
node_to_date_eddy
(
segment
[
-
1
],
e_overestim
)
last
=
report_graph
.
node_to_date_eddy
(
segment
[
-
1
],
e_overestim
)
last_days
=
last
[
'
date_index
'
]
last_date
=
datetime
.
date
(
1950
,
1
,
1
)
\
last_date
=
datetime
.
date
(
1950
,
1
,
1
)
\
+
datetime
.
timedelta
(
last
[
'
date_index
'
])
+
datetime
.
timedelta
(
last
[
'
date_index
'
])
last_year
=
last_date
.
year
last_year
=
last_date
.
year
...
...
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