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
617dc7d8
Commit
617dc7d8
authored
2 months ago
by
Lemaire Louis
Browse files
Options
Downloads
Patches
Plain Diff
[docs] Add Args type
Add "arg type:" lines
parent
f6a9fa9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!38
[feature] Gras-Sim model doctrings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MODULES/CROPS/GRASSIM/plants/plants.py
+6
-2
6 additions, 2 deletions
MODULES/CROPS/GRASSIM/plants/plants.py
MODULES/CROPS/GRASSIM/soil/soil.py
+8
-4
8 additions, 4 deletions
MODULES/CROPS/GRASSIM/soil/soil.py
with
14 additions
and
6 deletions
MODULES/CROPS/GRASSIM/plants/plants.py
+
6
−
2
View file @
617dc7d8
...
...
@@ -102,10 +102,14 @@ class Plants():
If the first day of the year, reset ST to zero and initialize the output dictionary for the year.
Args:
day: datetime object
WD: dictionary with the weather data (Rain [mm], Avg_temp [°C])
day: today
'
s date
day type: datetime object
WD: weather data (Rain [mm], Avg_temp [°C])
WD type: dictionary
ET0: potential evapotranspiration [mm]
ET0 type: float
day_irr: today
'
s irradiance [MJ/m²]
day_irr type: numpy array of shape grid
"""
self
.
day
=
day
self
.
year
=
str
(
day
.
year
)
...
...
This diff is collapsed.
Click to expand it.
MODULES/CROPS/GRASSIM/soil/soil.py
+
8
−
4
View file @
617dc7d8
...
...
@@ -9,9 +9,12 @@ class Soil():
Initialize the output dictionary and initialize the spatialized soil.
Args:
grid: tuple of (x, y), shape of the grid
inits: dictionary of initial variables
variables_to_save: list of strings of variables to save
grid: shape of the grid
grid type: tuple (x, y)
inits: initial values of variables
inity type: dictionary
variables_to_save: names of variables to save in the output dictionary
variables_to_save type: list
"""
self
.
grid
=
grid
self
.
inits
=
inits
...
...
@@ -48,7 +51,8 @@ class Soil():
If the first day of the year initialize the output dictionary for the year.
Args:
day: datetime object
day: today
'
s date
day type: datetime object
"""
self
.
day
=
day
self
.
year
=
str
(
day
.
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