def register_packages(pkgmanager): package = Package("jcd_test", {}) nf = Factory( name="dbg", description="debug", category="display", inputs=(dict(name='in', interface=None, value=None), ), outputs=(dict(name='out', interface=None), ), nodemodule="jcd_node", nodeclass="DebugNode", ) package.add_factory( nf ) nf = Factory( name="cid", description="cells scale", category="creator", inputs=(), outputs=(dict(name='scale', interface=IInt), ), nodemodule="jcd_node", nodeclass="CidNode", ) package.add_factory( nf ) nf = Factory( name="wid", description="walls scale", category="creator", inputs=(), outputs=(dict(name='scale', interface=IInt),), nodemodule="jcd_node", nodeclass="WidNode", ) package.add_factory( nf ) nf = Factory( name="eid", description="edges scale", category="creator", inputs=(), outputs=(dict(name='scale', interface=IInt),), nodemodule="jcd_node", nodeclass="EidNode", ) package.add_factory( nf ) pkgmanager.add_package(package)
def functions(module, path_mod): """ Get all the factories of the module module. """ name = module.__name__ _all = module.__all__ funs = [x for x in _all if callable(module.__getattribute__(x))] metainfo = dict(authors='Me', license='CeCILL-C', version='1.6.0') pkg = UserPackage(name=name, metainfo=metainfo, path=abspath(path_mod)) for func_name in funs: fact = Factory(name=func_name, category=name, nodemodule=name, nodeclass=func_name) pkg.add_factory(fact) pkg.write() return pkg
######################################### # # read # ######################################### read = Factory( name="read", description="", category="", nodemodule="mesh", nodeclass="read", inputs=(dict( name="filename", interface=IFileStr, ), ), outputs=( dict( name="mesh", interface=None, ), dict( name="mesh_prop", interface=None, ), ), ) __all__.append('read') ######################################### #
__license__ = 'CECILL-C' __authors__ = 'Eric Moscardi, [email protected]' __institutes__ = 'INRIA/CIRAD' __description__ = 'Numpy wrapping (Sorting and searching functions).' __url__ = 'http://openalea.gforge.inria.fr' #__icon__ = 'icon.png' __all__ = [] searchsorted = Factory( name="searchsorted", description= "Find indices where elements should be inserted to maintain order", category="numpy", inputs=( dict(name='a', interface=None), dict(name='v', interface=ISequence), dict(name='side', interface=IEnumStr(['left', 'right']), value='left'), ), outputs=(dict(name='indices', interface=None), ), nodemodule="numpy", nodeclass="searchsorted", ) __all__.append("searchsorted") where = Factory( name="where", description="Return elements, either from x or y, depending on condition.", category="numpy", inputs=( dict(name='condition', interface=None),
'py_pylab_PyLabXTicks', 'py_pylab_PyLabYTicks', 'py_pylab_PyLabSaveFig', 'py_pylab_PyLabAxesDecorator', 'py_pylab_PyLabShow', 'py_pylab_PyLabTextOptions', 'py_pylab_PyLabColorMap', 'py_pylab_PyLabBox', ] py_pylab_PyLabShow = Factory( name='PyLabShow', description='calls pylab.show()', category='visualization, data processing', nodemodule='openalea.pylab_decorators_wralea.py_pylab', nodeclass='PyLabShow', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False) py_pylab_PyLabTickParams = Factory( name='PyLabTickParams', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='openalea.pylab_decorators_wralea.py_pylab', nodeclass='PyLabTickParams', inputs=None, outputs=None, widgetmodule=None,
__version__ = version __authors__ = authors __institutes__ = 'INRIA/CIRAD' __icon__ = 'icon.png' __all__ = [ 'py_pylab_PyLabBivariateNormal', 'py_pylab_PyLabSinWave', ] py_pylab_PyLabBivariateNormal = Factory( name='PyLabBivariateNormal', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabBivariateNormal', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=True) py_pylab_PyLabSinWave = Factory(name='PyLabSinWave', description='A*sin(2 pi w t)', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabSinWave', inputs=None, outputs=None, widgetmodule=None, widgetclass=None,
__version__ = '0.0.1' __license__ = 'CECILL-C' __authors__ = 'OpenAlea Consortium' __institutes__ = 'INRIA/CIRAD' __description__ = 'Numpy wrapping and utils module.' __url__ = 'http://openalea.gforge.inria.fr' __icon__ = 'icon.png' __all__ = [] ndim = Factory( name = "ndim", description = "Number of array dimensions", category = "numpy", inputs = (dict(name='array', interface=ISequence),), outputs = (dict(name='ndim', interface= IInt),), nodemodule = "numpy", nodeclass = "ndim", ) __all__.append("ndim") shape = Factory(name = "shape", description = "Tuple of array dimensions", category = "numpy", inputs = (dict(name='array', interface=None),), outputs = (dict(name='shape', interface= ITuple),), nodemodule = "numpy", nodeclass = "shape", )
'py_pylab_PyLabSpecgram', 'py_pylab_PyLabStem', 'py_pylab_PyLabPcolor', 'py_pylab_PyLabStep', 'py_pylab_PyLabQuiver', 'py_pylab_PyLabFill', 'py_pylab_PyLabFillBetween', 'py_pylab_PyLabErrorBar', 'py_pylab_PyLabImshow', ] py_pylab_PyLabColorBar = Factory(name='PyLabColorBar', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabColorBar', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False) py_pylab_PyLabBoxPlot = Factory(name='PyLabBoxPlot', description='pylab.boxplot interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabBoxPlot', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False)
# Da SILVA David <*****@*****.**> # # Distributed under the Cecill-C License. # See accompanying file LICENSE.txt or copy at # http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html # # OpenAlea WebSite : http://openalea.gforge.inria.fr # from openalea.core import Factory __name__ = "vplants.plantgl.dresser" __alias__ = ["PlantGL.Dresser"] __version__ = '0.0.1' __license__ = 'CECILL-C' __authors__ = 'F. Boudon and D. Da Silva' __institutes__ = 'INRIA/CIRAD' __description__ = 'Spatial distribution module.' __url__ = 'http://www.scipy.org' __all__ = ["dresser"] dresser = Factory( name="PGL Dresser", description="Add Pgl geometry an object", category="scene.PGL", nodemodule="vplants.plantgl.ext.dresser", nodeclass="dresser", )
__all__ = [ 'py_pylab_PyLabAnnotate', 'py_pylab_PyLabYAArowDict', 'py_pylab_PyLabFancyArrowDict', 'py_pylab_PyLabAxhline', 'py_pylab_PyLabAxvline', 'py_pylab_PyLabAxhspan', 'py_pylab_PyLabAxvspan', 'py_pylab_PyLabBBox', ] py_pylab_PyLabAnnotate = Factory(name='PyLabAnnotate', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabAnnotate', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False) py_pylab_PyLabBBox = Factory(name='PyLabBBox', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabBBox', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False)
__alias__ = [] __version__ = '0.0.3' __license__ = "Cecill-C" __authors__ = 'Jerome Chopard' __institutes__ = 'INRIA/CIRAD' __description__ = 'Nodes to interact with provenance' __url__ = '' __all__ = [] dp = Factory(name="data_produced_by", description="", category="", nodemodule="openalea.wlformat.prov_exe", nodeclass="data_produced_by", inputs=(dict(name="prov", interface=None), dict(name="node", interface=IInt), dict(name="port", interface=IStr),), outputs=(dict(name="id", interface=IStr), dict(name="val", interface=None),), ) __all__.append('dp') du = Factory(name="data_used_by", description="", category="", nodemodule="openalea.wlformat.prov_exe", nodeclass="data_used_by", inputs=(dict(name="prov", interface=None),
__version__ = '0.0.1' __license__ = 'CECILL-C' __authors__ = 'OpenAlea Consortium' __institutes__ = 'INRIA/CIRAD' __description__ = 'Numpy wrapping and utils module.' __url__ = 'http://openalea.gforge.inria.fr' __icon__ = 'icon.png' __all__ = [] rand = Factory( name="rand", description="Random values in a given shape.", authors=['Eric Moscardi'], category="numpy", inputs=(dict(name='d', interface=IInt), ), outputs=(dict(name='array', interface=None), ), nodemodule="numpy_wralea.random.vnumpy", nodeclass="wra_rand", ) __all__.append("rand") randn = Factory( name="randn", description= "Return a sample (or samples) from the “standard normal” distribution.", authors=['Thomas Cokelaer', 'Eric Moscardi'], category="numpy", inputs=(dict(name='n', interface=IInt), ), outputs=(dict(name='array', interface=None), ),
__license__ = "Cecill-C" __revision__ = " $Id: $ " from openalea.core import Factory, Alias from openalea.core.interface import * __name__ = "openalea.image.registration" __all__ = [] points2transfo = Factory( name= "pts2transfo", description= "Infer rigid transformation from control point pairs", category = "image", nodemodule = "image_wralea.registration.registration", nodeclass = "pts2transfo", inputs=(dict(name="points1", interface=ISequence), dict(name="points2", interface=ISequence),), outputs=(dict(name="rigid transformation", interface=None),), ) __all__.append('points2transfo') Alias(points2transfo, 'pts2transfo') angles2transfo = Factory( name= "angles2transfo", description= "Compute transformation matrix between 2 images from the angles in each directions", category = "image", nodemodule = "image_wralea.registration.registration", nodeclass = "angles2transfo", inputs=(dict(name="image1", interface=None),
# # Distributed under the Cecill-C License. # See accompanying file LICENSE.txt or copy at # http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html # # OpenAlea WebSite : http://openalea.gforge.inria.fr ################################################################################ __doc__ = """ openalea.numpy """ __revision__ = " $Id: $ " from openalea.core import Factory #from openalea.core.interface import * __name__ = "openalea.numpy.window" __version__ = '0.99' __license__ = 'CECILL-C' __authors__ = 'Thomas Cokelaer, [email protected]' __institutes__ = 'INRIA/CIRAD' __description__ = 'Numpy wrapping (window functions).' __url__ = 'http://openalea.gforge.inria.fr' __icon__ = 'icon.png' __all__ = ['window'] window = Factory(name="window", description="window functions", category="numpy", nodemodule="vnumpy", nodeclass="window")
__version__ = '0.0.1' __license__ = 'CECILL-C' __authors__ = 'OpenAlea Consortium - J. Chopard' __institutes__ = 'INRIA/CIRAD' __description__ = 'svgdraw node library.' __url__ = 'http://openalea.gforge.inria.fr' __all__ = [] class ISvgElm(IInterface): """ Image interface """ loadsc = Factory( name= "loadSC", description= "load an svg file and convert it to svg scene", category = "Image,svg", nodemodule = "svg_inout", nodeclass = "loadsc", inputs=(dict(name="Filename", interface=IFileStr,),), outputs=(dict(name="scene", interface='ISvgElm',),), ) __all__.append('loadsc') writesc = Factory( name= "writeSC", description= "write an svg scene into a file", category = "Image,svg", nodemodule = "svg_inout", nodeclass = "writesc", inputs=(dict(name="scene", interface='ISvgElm'), dict(name="Filename", interface=IFileStr,),), outputs=(), )
'bool', 'uint8', 'uint16', 'uint32', 'uint64', 'int8', 'int16', 'int32', 'int64', 'float32', 'float64', 'float96', 'complex64', 'complex128', 'complex192' ] # for the convolve function: modes = ['full', 'valid', 'same'] std = Factory( name="std", description="Compute the standard deviation along the specified axis", authors='Eric Moscardi', category="numpy", inputs=( dict(name='array', interface=None), dict(name='axis', interface=IInt, value=None), dict(name='dtype', interface=None, value=None), dict(name='ddof', interface=IInt, value=0), ), outputs=None, nodemodule="numpy_wralea.math.numpy_math", nodeclass="std", ) __all__.append("std") dot = Factory( name="dot", category="numpy", inputs=( dict(name='array', interface=ISequence), dict(name='array', interface=ISequence),
__version__ = '0.0.1' __license__ = 'CECILL-C' __authors__ = 'OpenAlea Consortium' __institutes__ = 'INRIA/CIRAD' __description__ = 'Numpy wrapping and utils module.' __url__ = 'http://openalea.gforge.inria.fr' __all__ = [] flatten = Factory( name = "flatten", description = "Return a copy of the array collapsed into one dimension", category = "numpy", inputs = ( dict(name='array', interface=None), dict(name='order', interface=IEnumStr(["C", "F"]), value="C"),), outputs = (dict(name='y', interface= None),), nodemodule = "numpy_wralea.manipulation.manipulation", nodeclass = "wra_flatten", ) __all__.append("flatten") unique = Factory( name = "unique", description = "Find the unique elements of an array", category = "numpy", inputs = ( dict(name='array', interface=None), dict(name='return_index', interface=IBool, value=False), dict(name='return_inverse', interface=IBool, value=False),), outputs = (dict(name='unique', interface= None),), nodemodule = "numpy",
__icon__ = 'icon.png' __all__ = [ 'py_pylab_PyLabPlot3D', 'py_pylab_PyLabContour3D', 'py_pylab_PyLabContourf3D', ] py_pylab_PyLabPlot3D = Factory(name='PyLabPlot3D', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabPlot3D', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False ) py_pylab_PyLabContour3D = Factory(name='PyLabContour3D', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabContour3D', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False ) py_pylab_PyLabContourf3D = Factory(name='PyLabContourf3D',
__all__ = [] #save = Factory(name = "save", # description = "Save an array to a binary file in NumPy .npy format.", # category = "numpy", # inputs = (dict(name='filename', interface=IFileStr), dict(name='array', interface=ISequence)), # nodeclass = "save", #) #__all__.append("save") mmap = ['r+', 'r', 'w+', 'c'] load = Factory( name="load", description="Load a pickled, .npy, or .npz binary file.", category="numpy", inputs=(dict(name='filename', interface=IFileStr), dict(name='mmap_mode', interface=IEnumStr(mmap))), outputs=(dict(name='array', interface=None), ), nodemodule="numpy", nodeclass="load", ) __all__.append("load") #this one needs a little bit of work to have dynamic number args """ savez = Factory(name = 'savez', description = 'Save several arrays into a single, compressed file in .npz format.', category = 'numpy', inputs = (dict(name='filename', interface=IStr), dict(name='array', interface=ISequence)), nodeclass = 'savez', ) """
__all__ = [ 'py_pylab_PyLabPatchDictionary', 'py_pylab_PyLabCircle', 'py_pylab_PyLabEllipse', 'py_pylab_PyLabRectangle', 'py_pylab_PyLabPolygon', 'py_pylab_PyLabWedge', ] py_pylab_PyLabPatchDictionary = Factory( name='PyLabPatchDictionary', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabPatchDictionary', inputs=None, outputs=None, widgetmodule=None, widgetclass=None, lazy=False) py_pylab_PyLabCircle = Factory(name='PyLabCircle', description='pylab.fontproperties interface.', category='visualization, data processing', nodemodule='py_pylab', nodeclass='PyLabCircle', inputs=None, outputs=None, widgetmodule=None, widgetclass=None,
__all__ = [] list_type = [ 'bool', 'uint8', 'uint16', 'uint32', 'uint64', 'int8', 'int16', 'int32', 'int64', 'float32', 'float64', 'float96', 'complex64', 'complex128', 'complex192' ] array = Factory( name="array", description="Create an array", category="numpy", inputs=( dict(name='object', interface=None), dict(name='dtype', interface=IEnumStr(list_type), value='float64'), dict(name='copy', interface=IBool, value=True), dict(name='order', interface=IEnumStr(['C', 'F', 'A']), value='C'), dict(name='subok', interface=IBool, value=False), dict(name='ndmin', interface=IInt, value=0), ), outputs=(dict(name='array', interface=None), ), nodemodule="openalea.numpy_wralea.basics", nodeclass="wra_array", ) __all__.append("array") zeros = Factory( name="zeros", description="Return a new array of given shape and type, filled with zeros", category="numpy", inputs=(
__description__ = 'Scheduler Node library.' __url__ = 'http://openalea.gforge.inria.fr' __icon__ = 'icon.png' __all__ = [] ccycle = Factory( name="current_cycle", description="", category="", nodemodule="scheduler_wralea.scheduler", nodeclass="current_cycle", inputs=(dict( name="ini", interface=IInt, ), ), outputs=( dict( name="set", interface=IFunction, ), dict( name="get", interface=IFunction, ), ), ) __all__.append('ccycle') task = Factory( name="task",