On Mon, Nov 25, 2019 at 10:47 AM Ash <[email protected]> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/21abfcb4-46cc-462b-9abd-75c0d21fd641%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B-s-G2zaqOUs3%2B%2BB8KirNTsr52kbgi%2BEds%3DmhRyLWK6w%40mail.gmail.com.

Reply via email to