@@ -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
134135start 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")
142146are stored. "time_series.ouput" file should contain close values to those below:
0 commit comments