Skip to content

Commit 1511ef0

Browse files
authored
Merge pull request #135 from openalea/documentation
documentation
2 parents 5d99119 + f019da7 commit 1511ef0

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
22

33
build:
4-
os: "ubuntu-lts-latest"
4+
os: "ubuntu-24.04"
55
tools:
66
python: "miniconda3-3.12-24.9"
77

88
conda:
9-
environment: doc/environment.yml
9+
environment: conda/environment.yml
1010

1111
sphinx:
1212
# Path to your Sphinx configuration file.

conda/environment.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: hydroroot_dev
1+
name: hydroshoot
22
channels:
33
- openalea3/label/dev
44
- openalea3/label/rc
@@ -9,6 +9,12 @@ dependencies:
99
- openalea.plantgl
1010
- openalea.caribu
1111
- openalea.astk
12+
- numpy
13+
- scipy
14+
- sympy
15+
- pandas
16+
- jsonschema
17+
- pvlib-python
1218
- pip
1319
- pip:
1420
- -e .."[test,doc]"

doc/usage.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ Let's build the mock-up using the digitalization data provided in "grapevine_pot
104104
from openalea.mtg import traversal
105105
from openalea.plantgl.all import Scene
106106
from openalea.hydroshoot import architecture, display, model
107+
from pathlib import Path
107108
108109
# Path for plant digitalization data.
109-
g = architecture.vine_mtg('grapevine_pot.csv')
110+
grapevine_mtg = architecture.vine_mtg('grapevine_pot.csv')
110111
111112
for v in traversal.iter_mtg2(grapevine_mtg, grapevine_mtg.root):
112113
architecture.vine_phyto_modular(grapevine_mtg, v)
@@ -118,7 +119,7 @@ Display now the scene using **display** module, you should be having something l
118119

119120
.. code-block:: python
120121
121-
scene = display.visu(g, def_elmnt_color_dict=True, scene=Scene(),
122+
scene = display.visu(grapevine_mtg, def_elmnt_color_dict=True, scene=Scene(),
122123
view_result=True)
123124
124125
@@ -134,9 +135,12 @@ potential to a fixed value of -0.5 :math:`MPa`. Ensure first that the model will
134135
start and end dates of the simulation in the "params.json" file ("sdate": "2012-08-01 11:00:00",
135136
"edate": "2012-08-01 11:00:00").
136137

138+
Create a folder named 'output' and run the model.
139+
137140
.. code-block:: python
138141
139-
model.run(g, str(getcwd()) + '/', scene, psi_soil=-0.2, gdd_since_budbreak=100.)
142+
model.run(grapevine_mtg, Path(str(getcwd()) + '/'), Path(str(getcwd()) + '/meteo.input'),
143+
Scene = scene, psi_soil=-0.2, gdd_since_budbreak=100.)
140144
141145
You should now have created the '/output/' folder where output files ("time_series.ouput", "mtg20120801110000.pckl")
142146
are stored. "time_series.ouput" file should contain close values to those below:

0 commit comments

Comments
 (0)