Esempio n. 1
0
__license__ = 'CECILL-C'
__url__ = 'http://openalea.gforge.inria.fr'
__alias__ = ['catalog.file']
__version__ = '0.0.1'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__icon__ = ''

__all__ = []

files_DirName = Fa(uid="cad746e64e7211e6bff6d4bed973e64a",
                   name='dirname',
                   description='Directory name',
                   category='File,IO',
                   nodemodule='openalea.file.files',
                   nodeclass='DirName',
                   inputs=(
                       {'interface': IDirStr, 'name': 'DirStr', 'value': ''},),
                   outputs=({'interface': IDirStr, 'name': 'DirStr'},),
                   widgetmodule=None,
                   widgetclass=None,
                   )
__all__.append('files_DirName')

files_joinpath = Fa(uid="d14e39624e7211e6bff6d4bed973e64a",
                    name='joinpath',
                    description='Join several strings to form a path',
                    category='File,IO',
                    nodemodule='openalea.file.files',
                    nodeclass='joinpath',
                    inputs=(
                        {'interface': ISequence, 'name': 'a', 'value': []},),
Esempio n. 2
0
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea consortium'
__institutes__ = 'INRIA/CIRAD/UM2'
__description__ = 'File manipulations.'
__url__ = 'http://rpy.sourceforge.net and http://www.scipy.org/'

__editable__ = 'False'

__all__ = ['loadfile', 'extractrow', 'extractcolumn', ]

loadfile = Fa(uid="ab84e4644e7811e6bff6d4bed973e64a",
              name="load file",
              description="Read .txt file ",
              category="file,IO",
              nodemodule="openalea.stat.file.file",
              nodeclass="Load",
              inputs=(dict(name="file", interface=IFileStr("txt (*.txt)"),
                           showwidget=True),
                      ),
              outputs=(dict(name="data", interface=ISequence),
                       ),
              )

extractrow = Fa(uid="ab84e4654e7811e6bff6d4bed973e64a",
                name="extract row",
                description="Extract the lth row ",
                category="file,codec",
                nodemodule="openalea.stat.file.file",
                nodeclass="ExtractLigne",
                inputs=(dict(name="data", interface=None),
                        dict(name="L", interface=IInt, showwidget=True),
                        dict(name="Test", interface=IFloat, value=-1.,
Esempio n. 3
0
__description__ = ' Caribu package '
__license__ = ''
__url__ = ''
__alias__ = ['Caribu', 'alinea.caribu.workflow']
__version__ = '0.0.4'
__authors__ = 'M. Chelle,C. Fournier, C. Pradal'
__institutes__ = 'INRA'
__icon__ = 'Caribou.png'

__all__ = []

CaribuScene = Fa(uid="96612da84e8311e6bff6d4bed973e64a",
                 name='CaribuScene',
                 authors='C. Fournier',
                 description='instantiate a CaribuScene object',
                 category='scene.light',
                 nodemodule='alinea.caribu.CaribuScene_nodes',
                 nodeclass='newCaribuScene',
                 inputs=[dict(name="in1"), dict(name="in2"), dict(name="in3"), dict(name="in4")],
                 outputs=[dict(name='obj')])

__all__.append('CaribuScene')

runCaribu = Fa(uid="96612da94e8311e6bff6d4bed973e64a",
               name='Caribu',
               authors='C. Fournier',
               description='',
               category='scene.light',
               nodemodule='alinea.caribu.CaribuScene_nodes',
               nodeclass='runCaribu',
               inputs=[dict(name="in1")],
Esempio n. 4
0
__version__ = '0.0.1'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Mathematical Node library.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

equal = Fa(
    uid="4ae10e204e7411e6bff6d4bed973e64a",
    name="==",
    description="Equality test",
    category="Math",
    inputs=(
        dict(name="a", interface=IInt, value=0),
        dict(name="b", interface=IInt, value=0),
    ),
    outputs=(dict(name="out", interface=IBool), ),
    nodemodule="operator",
    nodeclass="eq",
)

__all__.append('equal')

diff = Fa(
    uid="509416d24e7411e6bff6d4bed973e64a",
    name="!=",
    description="Equality test",
    category="Math",
    inputs=(
__name__ = "openalea.data structure.dict"

__version__ = '0.0.1'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

dict_ = Fa(uid="35c30fca4e6f11e6bff6d4bed973e64a",
           name="dict",
           description="Python dictionary",
           category="datatype",
           nodemodule="openalea.data.dict.dicts",
           nodeclass="Dict",

           inputs=(dict(name="Dict", interface=IDict),),
           outputs=(dict(name="Dict", interface=IDict),),
           )
__all__.append('dict_')

edict_ = Fa(uid="3cb6ccd64e6f11e6bff6d4bed973e64a",
            name="edit dict",
            description="Python dictionary",
            category="datatype",
            nodemodule="openalea.data.dict.dicts",
            nodeclass="EditDict",

            inputs=(dict(name="Dict"), dict(name="dict", interface=IDict),),
            outputs=(dict(name="Dict", interface=IDict),),
Esempio n. 6
0
__institutes__ = 'INRA'

__all__ = []

GenOutput = Fa(uid="5cc625664e8411e6bff6d4bed973e64a",
               name='GenOutput',
               authors='M. Chelle,C. Fournier (wralea authors)',
               description='deprecated node',
               nodemodule='alinea.caribu.deprecated_nodes',
               nodeclass='GenOutput',
               inputs=[{
                   'interface': IStr,
                   'name': 'Etri',
                   'value': None,
                   'desc': ''
               }, {
                   'interface': IStr,
                   'name': 'Eabs',
                   'value': None,
                   'desc': ''
               }],
               outputs=[{
                   'interface': None,
                   'name': 'OutDict',
                   'desc': ''
               }],
               widgetmodule=None,
               widgetclass=None)
__all__.append('GenOutput')

FileCaribuScene = Fa(
    uid="5cc625674e8411e6bff6d4bed973e64a",
__version__ = '0.0.2'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

var_ = Fa(uid="29278da24e7111e6bff6d4bed973e64a",
          name="variable",
          description="Variable",
          category="datatype",
          nodemodule="openalea.data.data",
          nodeclass="Variable",

          inputs=(dict(name='Caption', interface=IStr, value='Variable'),
                  dict(name='Object', interface=None, value=None),
                  ),
          outputs=(dict(name='Object', interface=None),)
          )

__all__.append('var_')

str_ = Fa(uid="2ec3b2a44e7111e6bff6d4bed973e64a",
          name=protected("string"),
          description="String",
          category="datatype",
          nodemodule="openalea.data.data",
          nodeclass="String",
    'statsummary',
    'correlation',
    'mean',
    'median',
    'mode',
    'variance',
    'standarddeviation',
    'frequencies',
    'density',
]

log = Fa(
    uid="0c3edb084e7811e6bff6d4bed973e64a",
    name="log",
    description="Compute the log of each item of the input list",
    category="Math,stat",
    nodemodule="openalea.stat.descriptive.descriptive",
    nodeclass="list_log",
    inputs=(dict(name="x", interface=ISequence, showwidget=True), ),
    outputs=(dict(name="log", interface=ISequence), ),
)

statsummay = Fa(
    uid="0c3edb094e7811e6bff6d4bed973e64a",
    name="stat summary",
    description=("Compute the statistical summary "
                 "(min, max, median, mean, sd) "),
    category="descriptive",
    nodemodule="openalea.stat.descriptive.descriptive",
    nodeclass="StatSummary",
    inputs=(dict(name="x", interface=ISequence, showwidget=True), ),
    outputs=(dict(name="statsummary", interface=ISequence), ),
Esempio n. 9
0
__all__ = ['pmap_pmap', 'ppymap']

pmap_pmap = Fa(
    uid="a08a1ef04e7611e6bff6d4bed973e64a",
    name='parallel map',
    description='',
    category='Unclassified',
    nodemodule='openalea.multiprocessing.parallel_map',
    nodeclass='parallel_map',
    inputs=[{
        'interface': IFunction,
        'name': 'function',
        'value': None,
        'desc': ''
    }, {
        'interface': ISequence,
        'name': 'seq',
        'value': None,
        'desc': ''
    }],
    outputs=[{
        'interface': None,
        'name': 'result',
        'desc': ''
    }],
    widgetmodule=None,
    widgetclass=None,
)

ppymap = Fa(
    uid="a08a1ef14e7611e6bff6d4bed973e64a",
Esempio n. 10
0
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

pair = Fa(
    uid="c2c0d3164e7011e6bff6d4bed973e64a",
    name="pair",
    description="Python 2-uples",
    category="datatype",
    nodemodule="openalea.data.tuple.tuples",
    nodeclass="Pair",
    inputs=(
        dict(
            name="IN0",
            interface=None,
        ),
        dict(
            name="IN1",
            interface=None,
        ),
    ),
    outputs=(dict(name="OUT", interface=ISequence), ),
)

__all__.append('pair')

tuple3 = Fa(
    uid="be557a344e7011e6bff6d4bed973e64a",
    name="tuple3",
__name__ = 'openalea.data file'
__alias__ = []

__version__ = '0.0.1'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = ''
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = ['qd']

qd = Fa(uid="c20b6c144e7111e6bff6d4bed973e64a",
        name='get_data',
        authors='OpenAlea Consortium',
        description=('This node permits to find a shared data file located'
                     ' in a given Python package. The data file is searched'
                     ' among the data nodes of the PackageManager.'),
        category='data i/o',
        nodemodule='openalea.datafile.datafile',
        nodeclass='GetData',
        inputs=[
            {'interface': IStr, 'name': 'package', 'value': None},
            {'interface': IStr, 'name': 'glob', 'value': '*'},
            {'interface': IStr, 'name': 'filename', 'value': None}],
        outputs=[{'interface': IStr, 'name': 'filepath'}],
        widgetmodule='datafile_widget',
        widgetclass='GetDataBrowser',
        )
Esempio n. 12
0
__alias__ = []

__version__ = '0.0.1'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

list_ = Fa(uid="0a20f0024e7011e6bff6d4bed973e64a",
           name="list",
           description="Python list",
           category="datatype",
           nodemodule="openalea.data.list.lists",
           nodeclass="List",

           inputs=(dict(name="list", interface=ISequence),),
           outputs=(dict(name="list", interface=ISequence),),
           )

slice_ = Fa(uid="0f1a39924e7011e6bff6d4bed973e64a",
            name="slice",
            category="datatype",
            nodemodule="openalea.data.list.lists",
            nodeclass="Slice",

            inputs=(dict(name="list", interface="ISequence"),
                    dict(name="start", interface="IInt"),
                    dict(name="end", interface="IInt"),
                    dict(name="stride", interface="IInt")),
__alias__ = ["catalog.functional", "openalea.functional"]

__version__ = '0.0.2'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Functional Node library.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = ['map_', 'filter_', 'reduce_', 'apply_', 'func', 'ifelse_']

map_ = Fa(uid="d68a1fc64e7311e6bff6d4bed973e64a",
          name="map",
          description="Apply a function on a sequence",
          category="Functional",
          inputs=(dict(name='func', interface=IFunction),
                  dict(name='seq', interface=ISequence),),
          outputs=(dict(name="out", interface=ISequence),),
          nodemodule="openalea.functional.functional",
          nodeclass="pymap",
          )

filter_ = Fa(uid="dbaf9b984e7311e6bff6d4bed973e64a",
             name="filter",
             description=("Apply a function on a sequence and return only"
                          " true values"),
             category="Functional",
             inputs=(dict(name='func', interface=IFunction),
                     dict(name='seq', interface=ISequence)),
             outputs=(dict(name="out", interface=ISequence),),
             nodemodule="openalea.functional.functional",
             nodeclass="pyfilter",
Esempio n. 14
0
__editable__ = 'False'

__all__ = [
    'randomcontinuous', 'densitynormal', 'cumulativenormal', 'randomnormal',
    'densitypoisson', 'cumulatepoisson', 'randompoisson', 'randomdiscrete'
]

randomcontinuous = Fa(
    uid="3b3979904e7811e6bff6d4bed973e64a",
    name="random continuous (rpy)",
    description=("Generate random values from continuous "
                 "distribution"),
    category="statistics",
    nodemodule="openalea.stat.distribution.distribution",
    nodeclass="random_continuous_law",
    inputs=(
        dict(name="law",
             interface=IEnumStr(['exp', 'norm', 'unif']),
             showwidget=True),
        dict(name="n", interface=IInt, showwidget=True),
        dict(name="args", interface=ISequence, showwidget=True),
    ),
    outputs=(dict(name="res", interface=ISequence), ),
)

densitynormal = Fa(
    uid="3b3979914e7811e6bff6d4bed973e64a",
    name="density normal",
    description="Compute the density of normal distribution",
    category="statistics.normal distribution",
    nodemodule="openalea.stat.distribution.distribution",
Esempio n. 15
0
__revision__ = " $Id:  $ "

from openalea.core import Factory as Fa
from openalea.core import IInt, ISlice

__name__ = "openalea.data structure.slice"
__alias__ = []

__version__ = '0.0.1'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

slice_ = Fa(uid="9bb8d0344e7011e6bff6d4bed973e64a",
            name="slice",
            description="Python slice",
            category="datatype",
            nodemodule="openalea.data.slice.slices",
            nodeclass="Slice",
            inputs=(dict(name="start", interface=IInt, value=0),
                    dict(name="stop", interface=IInt, value=None),
                    dict(name="step", interface=IInt, value=None),),
            outputs=(dict(name="slice", interface=ISlice),),
            )

__all__.append('slice_')
Esempio n. 16
0
gammaTrans = Fa(
    uid="a76da7b54e8511e6bff6d4bed973e64a",
    name='gammaTrans',
    authors='C. Pradal (wralea authors)',
    description='return value normalised and raised at exponent gamma',
    category='Unclassified',
    nodemodule='alinea.caribu.visualisation.gammaTrans',
    nodeclass='gammaTrans',
    inputs=[{
        'interface': None,
        'name': 'values',
        'value': None,
        'desc': ''
    }, {
        'interface': IFloat,
        'name': 'gamma',
        'value': 1,
        'desc': ''
    }, {
        'interface': IFloat,
        'name': 'minval',
        'value': None,
        'desc': ''
    }, {
        'interface': IFloat,
        'name': 'maxval',
        'value': None,
        'desc': ''
    }],
    outputs=[{
        'interface': ISequence,
        'name': 'res',
        'desc': ''
    }],
    widgetmodule=None,
    widgetclass=None,
)
Esempio n. 17
0
__version__ = '0.0.1'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Python Node library'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = ['load', 'dump']

load = Fa(
    uid="e7aade0a4e7611e6bff6d4bed973e64a",
    name="pickle load",
    description="load pickled data",
    category="Python",
    nodemodule="openalea.pickling.pickling",
    nodeclass="py_load",
    inputs=(dict(name="file_path", interface=IFileStr), ),
    outputs=(dict(
        name="data",
        interface=None,
    ), ),
    lazy=False,
)

dump = Fa(
    uid="e7aade0b4e7611e6bff6d4bed973e64a",
    name="pickle dump",
    description="pickled data writer",
    category="Python",
    nodemodule="openalea.pickling.pickling",
    nodeclass="py_dump",
    inputs=(
__description__ = 'Spatial distribution module.'
__url__ = 'http://www.scipy.org'

__all__ = ['stand_pos', 'stand_dresser']

stand_pos = Fa(
    uid="e984a2964e7711e6bff6d4bed973e64a",
    name="Stand Positioner",
    description="Add spatial position to each object from list",
    category="scene",
    nodemodule="vplants.stand.stand_modelling",
    nodeclass="stand_positioner",
    inputs=(
        dict(name="Object List", interface=ISequence, showwidget=False),
        dict(name="X distribution", interface=ISequence, showwidget=False),
        dict(name="Y distribution", interface=ISequence, showwidget=False),
        dict(name="type",
             interface=IEnumStr([
                 'Position mapping (PM)', 'Best PM',
                 'Best PM with radius deformation', 'Gibbs'
             ]),
             value='Position mapping (PM)',
             showwidget=True),
        dict(name="parameters", interface=IDict, showwidget=True),
    ),
    outputs=(dict(name="modified object list", interface=ISequence), ),
)

stand_dresser = Fa(
    uid="e984a2974e7711e6bff6d4bed973e64a",
    name="Stand Dresser",
    description="Add geometry to each object from list",
""" catalog.model """

__revision__ = " $Id$ "

from openalea.core import Factory as Fa
from openalea.core.pkgdict import protected

__name__ = protected("openalea.model")
# __name__ = "openalea.model"
__alias__ = [
    "catalog.model",
]

__version__ = '0.0.1'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Models.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = ['linear']

linear = Fa(
    uid="8005f33e4e7611e6bff6d4bed973e64a",
    name=protected("linearmodel"),
    description="Linear Model",
    category="misc",
    nodemodule="openalea.model.models",
    nodeclass="linearmodel",
)
Esempio n. 20
0
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'System Node library.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

cmd = Fa(
    uid="55edfaee4e7911e6bff6d4bed973e64a",
    name="command",
    description="Call a system command",
    category="misc,Python",
    nodemodule="openalea.system.systemnodes",
    nodeclass="system_cmd",
    inputs=(dict(name="commands",
                 interface=ISequence,
                 value=[],
                 desc='List of command strings'), ),
    outputs=(
        dict(name="stdout", interface=None, desc='result'),
        dict(name="stderr", interface=None, desc='result'),
    ),
)

__all__.append('cmd')

shcmd = Fa(
    uid="55edfaef4e7911e6bff6d4bed973e64a",
    name="shell command",
    description="Call a shell command in a specific directory",
    category="misc,Python",
__url__ = 'http://openalea.gforge.inria.fr'
__version__ = '0.0.1'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__icon__ = ''

__all__ = []

abspath = Fa(
    uid="bdce27864e7611e6bff6d4bed973e64a",
    name='abspath',
    category='File,IO',
    nodemodule='openalea.path.paths',
    nodeclass='py_abspath',
    inputs=({
        'interface': IFileStr,
        'name': 'path',
        'value': '.'
    }, ),
    outputs=({
        'interface': IFileStr,
        'name': 'path'
    }, ),
)
__all__.append('abspath')

basename = Fa(
    uid="bdce27874e7611e6bff6d4bed973e64a",
    name='basename',
    category='File,IO',
    nodemodule='openalea.path.paths',
    nodeclass='py_basename',
__editable__ = 'False'

__all__ = [
    'plot',
    'hist',
    'plotdensity',
]

plot = Fa(
    uid="ce6415ea4e7811e6bff6d4bed973e64a",
    name="plot (x,y)",
    description="Plot (x,y)",
    category="graphics",
    nodemodule="openalea.stat.graphics.graphics",
    nodeclass="Plot",
    inputs=(
        dict(name="X", interface=ISequence, showwidget=True),
        dict(name="Y", interface=ISequence, showwidget=True),
        dict(name="xlab", interface=IStr, value=None, showwidget=True),
        dict(name="ylab", interface=IStr, value=None, showwidget=True),
        dict(name="main", interface=IStr, value=None, showwidget=True),
    ),
    outputs=(dict(name="Plot", interface=ISequence), ),
)

hist = Fa(
    uid="ce6415eb4e7811e6bff6d4bed973e64a",
    name="hist (x)",
    description="Histogram (x)",
    category="graphics",
    nodemodule="openalea.stat.graphics.graphics",
    nodeclass="Hist",
__alias__ = ["catalog.python", "openalea.python"]

__version__ = '0.0.2'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Python Node library.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

# Factories
ifelse = Fa(
    uid="3b5edf424e7711e6bff6d4bed973e64a",
    name="ifelse",
    description="Condition",
    category="Python",
    nodemodule="python",
    nodeclass="py_ifelse",
)

__all__.append('ifelse')

getitem = Fa(
    uid="3b5edf434e7711e6bff6d4bed973e64a",
    name="getitem",
    description="Python __getitem__",
    category="Python",
    inputs=[
        dict(name="obj", interface=None),
        dict(name="key", interface='IInt', value=0),
    ],
Esempio n. 24
0
__editable__ = 'False'

__all__ = [
    'chisquare',
    'studenttest',
    'kstest',
]

chisquare = Fa(
    uid="0fff229c4e7911e6bff6d4bed973e64a",
    name="chi square test (rpy)",
    description="Compute the Chisquare Test",
    category="test",
    nodemodule="openalea.stat.stattest",
    nodeclass="chisqtest",
    inputs=(
        dict(name="X", interface=ISequence, showwidget=True),
        dict(name="Y", interface=ISequence, showwidget=True),
        dict(name="Proportion", interface=ISequence, showwidget=True),
    ),
    outputs=(dict(name="chisqtest", interface=IDict), ),
)

studenttest = Fa(
    uid="0fff229d4e7911e6bff6d4bed973e64a",
    name="student test (scipy)",
    description="compute the Student Test",
    category="test",
    nodemodule="openalea.stat.stattest",
    nodeclass="ttest",
    inputs=(
Esempio n. 25
0
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Plottools library'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

vsplot = Fa(uid="0ddb02764e7711e6bff6d4bed973e64a",
            name="VS Plot",
            description="Plot a list of 2D points plotable objects",
            category="Visualization,plot",
            nodemodule="openalea.plotools.plotable",
            nodeclass="display_VisualSequence",
            inputs=(
                dict(name='vis_seq_list', interface=None, showwidget=False),
                dict(name='visualisation',
                     interface=IEnumStr(['PointLine', 'Hist']),
                     value='PointLine'),
                dict(name='title', interface=IStr, value='MyPlot'),
                dict(name='xlabel', interface=IStr, value='x-axis-label'),
                dict(name='ylabel', interface=IStr, value='y-axis-label'),
                dict(name='figure', interface=IInt(0, 10), value=0),
            ),
            outputs=(dict(name='result', interface=None), ))

__all__.append('vsplot')

ptline_style = Fa(
    uid="0ddb02774e7711e6bff6d4bed973e64a",
    name="PointLine Style",
    description="Allows us to edit VisualSequence plot",
Esempio n. 26
0
#
################################################################################

__doc__ = """ OpenAlea dictionary data structure"""
__license__ = "Cecill-C"
__revision__ = " $Id$ "

from openalea.core import Factory as Fa

__name__ = "openalea.data structure.array"

__version__ = '0.0.1'
__license__ = "Cecill-C"
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Nodes for standard data structure creation, edition and visualisation.'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = []

array_ = Fa(
    uid="11d72baa4e6f11e6bff6d4bed973e64a",
    name="array",
    description="Python array",
    category="datatype",
    nodemodule="openalea.data.array.arrays",
    nodeclass="PyArray",
)

__all__.append('array_')
__all__ = [
    'glm',
    'linearregression',
    'multiplelinearregression',
    'linearregressiontoplot',
    'linearregressionscipy',
]

glm = Fa(
    uid="e7f010b84e7811e6bff6d4bed973e64a",
    name="glm (rpy)",
    description="Compute the generalized linear regression",
    category="openalea.stat.regression.regression",
    nodemodule="regression",
    nodeclass="Glm",
    inputs=(
        dict(name="X", interface=ISequence, showwidget=True),
        dict(name="Y", interface=ISequence, showwidget=True),
        dict(name="Family",
             interface=IEnumStr(['binomial', 'Gamma', 'gaussian', 'poisson']),
             showwidget=True),
    ),
    outputs=(dict(name="Glm", interface=IDict), ),
)

linearregression = Fa(
    uid="e7f010b94e7811e6bff6d4bed973e64a",
    name="linear regression (rpy)",
    description="Compute the linear regression",
    category="regression",
    nodemodule="openalea.stat.regression.regression",
    nodeclass="LinearRegression",
__revision__ = " $Id$ "

from openalea.core import Factory as Fa
from openalea.core import Alias, Factory, IFloat, IInt, IRGBColor
from color_interface import IColor

__name__ = "openalea.color"
__alias__ = ["catalog.color"]

__all__ = ['colormap', 'rgbcolormap']

color = Fa(
    uid="10f07e684e5511e6bff6d4bed973e64a",
    name="color",
    description="edit color",
    category="datatype,image",
    nodemodule="openalea.color.py_color",
    nodeclass="ColorNode",
    inputs=(dict(name="RGB", interface=IColor, value=(0, 0, 0)), ),
    outputs=(dict(name="RGB", interface=IColor), ),
)

Alias(color, 'rgb')
__all__.append("color")

black = Fa(
    uid="48f7e27e4e5511e6bff6d4bed973e64a",
    name="black",
    description="black color",
    category="datatype,image",
    nodemodule="openalea.color.py_color",
    nodeclass="BlackNode",
Esempio n. 29
0
__institutes__ = 'INRIA/CIRAD'
__description__ = 'Spatial distribution module.',
__url__ = 'http://www.scipy.org'

__all__ = ["domain", 'basic_dist', 'aggr_dist', 'rand2d', 'spatial_dist']

domain = Fa(
    uid="7c062fc84e7711e6bff6d4bed973e64a",
    name="Domain",
    description="Generates domain tuple",
    category="Spatial,scene",
    nodemodule="openalea.spatial.distribGen",
    nodeclass="domain",
    inputs=(
        dict(name="X min", interface=IInt, value=0, showwidget=True),
        dict(name="X max", interface=IInt, value=1, showwidget=True),
        dict(name="Y min", interface=IInt, value=0, showwidget=True),
        dict(name="Y max", interface=IInt, value=1, showwidget=True),
        dict(name="Scale factor",
             interface=IFloat(min=1, step=10),
             value=1,
             showwidget=True),
    ),
    outputs=(dict(name="domain2D", ), ),
)

basic_dist = Fa(
    uid="7c062fc94e7711e6bff6d4bed973e64a",
    name="Basic Distribution",
    description="Basic spatial distributions",
    category="Spatial,scene",
Esempio n. 30
0
__version__ = '0.0.1'
__license__ = 'CECILL-C'
__authors__ = 'OpenAlea Consortium'
__institutes__ = 'INRIA/CIRAD'
__description__ = 'String library'
__url__ = 'http://openalea.gforge.inria.fr'

__all__ = ['split', 'join', 'strip']

split = Fa(
    uid="335b1dc24e7911e6bff6d4bed973e64a",
    name="split",
    description="split a string",
    category="String,Python",
    nodemodule="openalea.string.strings",
    nodeclass="str_split",
    inputs=(
        dict(name="String", interface=IStr, value=''),
        dict(name="Split Char", interface=IStr, value='\n'),
    ),
    outputs=(dict(name="List", interface=ISequence), ),
)

strip = Fa(
    uid="335b1dc34e7911e6bff6d4bed973e64a",
    name="strip",
    description=("Return a copy of the string s with leading and "
                 "trailing whitespace removed."),
    category="String,Python",
    nodemodule="openalea.string.strings",
    nodeclass="str_strip",