Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PASE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
DEAL public
PASE
Commits
b607450e
Commit
b607450e
authored
2 months ago
by
Lemaire Louis
Browse files
Options
Downloads
Patches
Plain Diff
[docs] Minor changes to docstrings
-
parent
26090aed
No related branches found
Branches containing commit
No related tags found
1 merge request
!38
[feature] Gras-Sim model doctrings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MODULES/CROPS/GRASSIM/plants/plants.py
+2
-1
2 additions, 1 deletion
MODULES/CROPS/GRASSIM/plants/plants.py
with
2 additions
and
1 deletion
MODULES/CROPS/GRASSIM/plants/plants.py
+
2
−
1
View file @
b607450e
...
...
@@ -92,7 +92,7 @@ class Plants():
def
init_daily_loop
(
self
,
day
,
WD
,
ET0
,
day_irr
):
"""
Initialize the daily loop.
G
et the day, the weather data, the potential evapotranspiration
, today
'
s irradiance
.
Initialize the daily loop.
S
et the day, the
year, the
weather data,
today
'
s irradiance and
the potential evapotranspiration.
If the first day of the year, reset ST to zero and initialize the output dictionary for the year.
day -- datetime object
...
...
@@ -395,6 +395,7 @@ class Plants():
def
save_variables
(
self
):
"""
Save the variables in the output dictionary.
"""
for
var
in
self
.
variables_to_save
:
try
:
self
.
nyears_data
[
self
.
year
][
var
][
self
.
day
]
=
copy
.
deepcopy
(
getattr
(
self
,
var
))
...
...
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