Skip to content
Snippets Groups Projects
Commit 185b846d authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

Merge branch 'PythonBugFixComplexValue' into 'master'

F_Python with complex output: we have to use 'item' instead of 'out' when output is a list

See merge request !10
parents 84d95232 77d7eda8
Branches
Tags
1 merge request!10F_Python with complex output: we have to use 'item' instead of 'out' when output is a list
Pipeline #
......@@ -119,8 +119,8 @@ void F_Python(F_ARG)
for(int i = 0; i < size; i++){
PyObject *item = PyList_GetItem(out, i);
if(PyComplex_Check(item)){
double re = PyComplex_RealAsDouble(out);
double im = PyComplex_ImagAsDouble(out);
double re = PyComplex_RealAsDouble(item);
double im = PyComplex_ImagAsDouble(item);
V->Val[i] = re;
V->Val[MAX_DIM + i] = im;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment