Octave as a module for Python
Jaroslav Hajek
highegg at gmail.com
Wed May 6 01:30:14 CDT 2009
On Tue, May 5, 2009 at 9:32 PM, David Grundberg <c04dgg at cs.umu.se> wrote:
> Announcing Pytave
>
> An Octave module for Python
> ===========================
>
> Pytave enables Python scripts to use existing m-files (Octave/Matlab
> scripts) for numerical calculations. Pytave embeds the Octave
> language interpreter as a module to Python.
>
> This new revision allows dictionaries and lists to be passed to
> Octave.
>
> Example use
> ===========
>
> Calling Octave code in the interactive Python interpreter:
>
> >>> import pytave
> >>> pytave.feval(1, "cos", 0)
> (1.0,)
>
> Goals
> =====
>
> Pytave strives to uphold these points
>
> * Good out of the box experience
>
> * Good-natured implicit type conversions, no strange PyApple ->
> octave_orange -> PyBanana chains
>
> Features
> ========
>
> A short list of what Pytave is capable of
>
> * Implicit type conversions between Python and Octave. Supports all
> Numeric integer, real double (and possibly real float) matrices
>
> * Architecture independent - no assumption on endian type or integer
> sizes
>
> * Supports cell <-> list and struct <-> dict conversions. (NEW)
>
> Project homepage
> ================
>
> https://launchpad.net/pytave
>
> Using/hacking
> =============
>
> You need the Bazaar version control software (bzr). Branch from trunk
> with:
>
> $ bzr branch lp:pytave
>
> You will now have a directory called `pytave' with source code for
> the module. Read the INSTALL file for building instructions.
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
Excellent! I just built pytave with the development Octave on
OpenSUSE/x86_64, Python 2.5.2, and all seems OK.
Great job. Hopefully no more pipes for calling Octave from Python... I
must find time to inspect the code.
cheers
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Help-octave
mailing list