Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ dependencies:
- pip
- openalea.mtg
- openalea.plantgl
- oawidgets
- openalea.oawidgets
- yaml
- rsml
- openalea.rsml
- matplotlib-base
# let pip install the rest using pyproject.toml (if you are okay with conda/pip mix)
- pip:
Expand Down
2 changes: 1 addition & 1 deletion doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ arabidopsis-simple example http://rootsystemml.github.io/images/examples/arabido

.. code-block:: python

import rsml
import openalea.rsml as rsml
from openalea.hydroroot import radius
from openalea.hydroroot.main import hydroroot_flow
from openalea.hydroroot.display import plot
Expand Down
4 changes: 2 additions & 2 deletions example/example_archi_from_file.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"metadata": {},
"outputs": [],
"source": [
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene\n",
"from openalea.hydroroot.read_file import read_archi_data\n",
Expand Down Expand Up @@ -204,7 +204,7 @@
"source": [
"You may change the property to display to the hydrostatic pressure inside the xylem vessels for instance\n",
"\n",
"to reduce notebook size we use here a 2D view but you can use the oawidgets `PlantGL(s)` to display an interactive 3D view"
"to reduce notebook size we use here a 2D view but you can use the openalea.oawidgets `PlantGL(s)` to display an interactive 3D view"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions example/example_archi_from_rsml.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"metadata": {},
"outputs": [],
"source": [
"import rsml\n",
"import openalea.rsml as rsml\n",
"from openalea.hydroroot import radius\n",
"from openalea.hydroroot.main import hydroroot_flow\n",
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene\n",
"from openalea.hydroroot.hydro_io import import_rsml_to_discrete_mtg, export_mtg_to_rsml"
Expand Down Expand Up @@ -191,7 +191,7 @@
"source": [
"Display the local water uptake heatmap\n",
"\n",
"to reduce notebook size we use here a 2D view but you can use the oawidgets `PlantGL(s)` to display an interactive 3D view"
"to reduce notebook size we use here a 2D view but you can use the openalea.oawidgets `PlantGL(s)` to display an interactive 3D view"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions example/example_generated_archi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"source": [
"import pandas \n",
"from openalea.hydroroot.main import root_builder, hydroroot_flow\n",
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene"
]
Expand Down Expand Up @@ -141,7 +141,7 @@
"source": [
"Display the local water uptake heatmap\n",
"\n",
"to reduce notebook size we use here a 2D view but you can use the oawidgets `PlantGL(s)` to display an interactive 3D view"
"to reduce notebook size we use here a 2D view but you can use the openalea.oawidgets `PlantGL(s)` to display an interactive 3D view"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions example/example_k_adjustment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"from openalea.hydroroot.main import hydroroot_flow, root_builder\n",
"from openalea.hydroroot.init_parameter import Parameters\n",
"from openalea.hydroroot.read_file import read_archi_data\n",
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene"
]
Expand Down Expand Up @@ -174,7 +174,7 @@
"source": [
"Display the local water uptake heatmap\n",
"\n",
"to reduce notebook size we use here a 2D view but you can use the oawidgets `PlantGL(s)` to display an interactive 3D view"
"to reduce notebook size we use here a 2D view but you can use the openalea.oawidgets `PlantGL(s)` to display an interactive 3D view"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions example/example_parameter_class.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"from openalea.hydroroot.main import hydroroot_flow, root_builder\n",
"from openalea.hydroroot.init_parameter import Parameters\n",
"from openalea.hydroroot.read_file import read_archi_data\n",
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene"
]
Expand Down Expand Up @@ -344,7 +344,7 @@
"source": [
"Display the local water uptake heatmap\n",
"\n",
"to reduce notebook size we use here a 2D view but you can use the oawidgets `PlantGL(s)` to display an interactive 3D view"
"to reduce notebook size we use here a 2D view but you can use the openalea.oawidgets `PlantGL(s)` to display an interactive 3D view"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion example/example_rsml_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""

import glob
import rsml
import openalea.rsml as rsml
import argparse
import sys

Expand Down
2 changes: 1 addition & 1 deletion example/example_solute_water_transport.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"from openalea.hydroroot.read_file import read_archi_data\n",
"from openalea.hydroroot.conductance import set_conductances\n",
"from openalea.hydroroot.water_solute_transport import pressure_calculation_no_non_permeating_solutes, init_some_MTG_properties\n",
"from oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.oawidgets.plantgl import PlantGL # notebook viewer 3D\n",
"from openalea.plantgl.algo.view import view # 2D view\n",
"from openalea.hydroroot.display import mtg_scene"
]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ channels = [
dependencies = [
"openalea.mtg",
"openalea.plantgl",
"oawidgets",
"openalea.oawidgets",
"yaml",
"rsml",
"openalea.rsml",
"matplotlib-base" # does not exist in pip
]

Expand Down
2 changes: 1 addition & 1 deletion src/openalea/hydroroot/hydro_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openalea.mtg.algo import axis
from openalea.mtg.traversal import *

from rsml import continuous, io
from openalea.rsml import continuous, io

from openalea.hydroroot import display

Expand Down
4 changes: 2 additions & 2 deletions test/21-06-11-test_rsml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from openalea.mtg import *
from openalea.hydroroot import display
from path import Path
from rsml.continuous import toporder
from openalea.rsml.continuous import toporder

data = Path('./data/200703-YBFB-Col-2.mtg')
# gini = MTG(data)
Expand All @@ -30,7 +30,7 @@ def quotient_axis(v):
g = g.insert_scale(inf_scale=1, partition=lambda v: v==root_id, default_label='P')

#3 Transform to rsml
from rsml import continuous, io, plot
from openalea.rsml import continuous, io, plot

gcopy = g.copy()

Expand Down
2 changes: 1 addition & 1 deletion test/test_rsml_yaml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import rsml
import openalea.rsml as rsml
from openalea.mtg import MTG, traversal

from openalea.hydroroot.hydro_io import export_mtg_to_rsml, import_rsml_to_discrete_mtg
Expand Down
Loading