|
From: | Abhinav Tripathi |
Subject: | Re: PyTave and Symbolic |
Date: | Mon, 23 May 2016 12:26:40 -0700 |
I'm thinking we might *almost* have enough functionality in @pyobj that
you could try to use that directly in Symbolic's python_ipc_pytave.m:
After the line `pyexec(s)`, the stuff we want to return to Octave is in
a Python list called `_outs`. Maybe we can just use something like:
tmp = pyeval('_outs[0]');
(note currently pyobj will not deal with the list correctly itself,
you'll need to get the elements of the list).
See python_header.py: "octoutput" function, specifically after the line
`elif x is None or isinstance(x, (sp.Basic, sp.MatrixBase)):`. Compare
this to `extractblock.m` so see which properties of a SymPy Python
object we need to make a @sym object.
[Prev in Thread] | Current Thread | [Next in Thread] |