|
From: Glen S. <gle...@gm...> - 2008-06-05 22:40:21
|
Hi again, I would like voice my thanks for labpython as well, it's generally a great piece of software, it's just unfortunate that numpy support is not there since I was, as Luc said, using python/numpy/matplotlib as a matlab replacement. Cheers, Glen 2008/6/5 Luc Estebanez <luc...@en...>: > Hi all, > > I would like to add my vote to support the idea to add a numpy interface > for Labpython! This would enhance greatly this piece of software since > numpy has really become the standard for numerical stuff in python, and I > suppose many users of Labpython are using python as a 'matlab' > replacement. > > Thank you for all the hard work, > > Gratefully, > > luc > > > Hi Glen > > > > So numpy and scipy functions can be used as long as native data types are > > used? That may cause some problems since I am trying to perform matrix > > operations. I am using LabVIEW 8.20 with python 2.5.2 and labpython > 1.2.2 > > on Windows XP. I am trying to pass a 2D array of floats to python. > > > > It should be possible. The way I solved arrays in LabPython was to treat > > them as lists. Consequently 2D arrays are lists of lists. It is not very > > efficient but Python does even in 2.5 not give you an exported array C > API > > with which I could retrieve any information from a numpy array, despite > > the > > fact that the Python core does know an array datatype. > > > > It would be possible to add something like that to LabPython by making > use > > of the numpy extension and its exported C API but at the time I was > > developing LabPython numpy was just in its infancy taking over from its > > predecessor the numerical library. That API seemed not at all stable to > me > > at that point and making LabPython depend only softly on it (meaning it > > would still work but without support of numpy datatypes) would also be > > some > > serious thinkering. > > > > I may take a look how numpy interfaces with Python to solve the array > > interface issue but to do it right would be a majour undertaking and I > > have > > a real job to do that pays the bills. > > > > Rolf Kalbermatter > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://sourceforge.net/services/buy/index.php_______________________________________________ > > LabPython-Users mailing list > > Lab...@li... > > https://lists.sourceforge.net/lists/listinfo/labpython-users > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > LabPython-Users mailing list > Lab...@li... > https://lists.sourceforge.net/lists/listinfo/labpython-users > |