diff --git a/doc/notebook/caribu_crops.ipynb b/doc/notebook/caribu_crops.ipynb index dd67eb7..bbf6cad 100644 --- a/doc/notebook/caribu_crops.ipynb +++ b/doc/notebook/caribu_crops.ipynb @@ -9,7 +9,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -17,61 +17,32 @@ "from openalea.caribu.data_samples import data_path\n", "\n", "can = str(data_path('f331s1_100plantes.can'))\n", - "sky = str(data_path('Turtle16soc.light'))\n", + "sky = str(data_path('zenith.light'))\n", "opts = list(map(str, [data_path('par.opt'), data_path('nir.opt')]))\n", "pattern = str(data_path('filter.8'))\n", " \n", "# complete set of files\n", - "cs = CaribuScene(scene=can, light=sky, opt=opts, pattern=pattern)\n", - "raw,agg=cs.run(simplify=True)" + "cs = CaribuScene(scene=can, light=sky, opt=opts, pattern=pattern, scene_unit='cm')\n", + "raw,agg=cs.run(simplify=True, infinite=False)" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "scene,values = cs.plot(raw['par']['Ei'],display=False)" + "scene,values = cs.plot(raw['par']['Ei'], 0, 1, 0.2,display=False)" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "import numpy as np\n", - "v99 = np.percentile(values, 99)\n", - "nvalues=np.array(values)\n", - "nvalues[nvalues>v99]=v99\n", - "values = nvalues.tolist()" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "2ea5592b7d7a4e60aa12b6a34c83ae59", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "Plot(antialias=3, axes=['x', 'y', 'z'], axes_helper=1.0, axes_helper_colors=[16711680, 65280, 255], background…" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], "source": [ "from openalea.widgets.plantgl import *\n", - "PlantGL(scene, group_by_color=False, property=values, side='double')" + "PlantGL(scene, group_by_color=False, side='double')" ] }, { diff --git a/pyproject.toml b/pyproject.toml index f8b2e5c..921438e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ test-dependencies = [ "openalea.mtg" ] optional-dependencies = [ - "openaalea.widgets" + "openalea.widgets" ]