from sympy.utilities.autowrap import autowrap auto_odes = autowrap(mass_matrix, backend='cython', tempdir='./MassMatrix')
Inside MassMatrix folder, I see file names starting with 'wrapper.', setup.py etc.. Is there a way to rename this file (wrapper) when it's being created? Also, I
ran the command 'python setup.py install' and tried to do
from MassMatrix.wrapper_module_0 import autofunc_c as MM
It throws an error 'No module named 'MassMatrix.wrapper_module_0'. Can anyone tell me what am I doing wrong? Is there a more elegant way to do this?
My folder structure is
ABC
MassMatrix
Coriolis
All the above are names of folders and I am inside ABC folder
Thanks in advance for any help

Ash
On Mon, Nov 25, 2019 at 10:47 AM Ash <shya...@gmail.com> wrote:
>
> Hello,
> I have gone through the code generation tutorial (https://github.com/shyamashi/scipy-2017-codegen-tutorial/blob/master/notebooks/08-cythonizing.ipynb) and converted my matrices (mass & coriolis) into a 'C' code and created two folders MassMatrix and Coriolisvector. The following two lines are the one which I used
>
>
> from sympy.utilities.autowrap import autowrap
> auto_odes = autowrap(mass_matrix, backend='cython', tempdir='./MassMatrix')
>
> Inside MassMatrix folder, I see file names starting with 'wrapper.', setup.py etc.. Is there a way to rename this file (wrapper) when it's being created? Also, I
> ran the command 'python setup.py install' and tried to do
>
> from MassMatrix.wrapper_module_0 import autofunc_c as MM
>
> It throws an error 'No module named 'MassMatrix.wrapper_module_0'. Can anyone tell me what am I doing wrong? Is there a more elegant way to do this?
> My folder structure is
>
> ABC
> MassMatrix
> Coriolis
>
> All the above are names of folders and I am inside ABC folder
What are the files inside the MassMatrix folder? Make sure you have an
__init__.py file there.
Aaron Meurer
>
> Thanks in advance for any help
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sy...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/07d204d4-290d-4cee-a39a-f9dba038530c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/07d204d4-290d-4cee-a39a-f9dba038530c%40googlegroups.com.