Skip to content

Commit

Permalink
Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed May 31, 2024
1 parent c4334e6 commit 6a10197
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions exaudfclient/base/python/python3/python_ext_dataframe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1227,16 +1227,14 @@ void emit(PyObject *resultHandler, std::vector<ColumnInfo>& colInfo, PyObject *d
PyPtr funcArgs(Py_BuildValue("(s)", "object"));
PyPtr castedValues(PyObject_Call(asTypeFunc.get(), funcArgs.get(), keywordArgs.get()));
data.reset(PyObject_GetAttrString(castedValues.get(), "values"));
arrayPtr = PyArray_FROM_OTF(data.get(), NPY_OBJECT, NPY_ARRAY_IN_ARRAY);
pyArray = reinterpret_cast<PyArrayObject*>(arrayPtr);
pyArray = reinterpret_cast<PyArrayObject*>(PyArray_FROM_OTF(data.get(), NPY_OBJECT, NPY_ARRAY_IN_ARRAY));
numRows = PyArray_DIM(pyArray, 0);
numCols = PyArray_DIM(pyArray, 1);
// Transpose to column-major
colArray = PyPtr(PyArray_Transpose(pyArray, NULL));
}else{
data=PyPtr(PyObject_GetAttrString(dataframe, "values"));
arrayPtr = PyArray_FROM_OTF(data.get(), NPY_OBJECT, NPY_ARRAY_IN_ARRAY);
pyArray = reinterpret_cast<PyArrayObject*>(arrayPtr);
pyArray = reinterpret_cast<PyArrayObject*>(PyArray_FROM_OTF(data.get(), NPY_OBJECT, NPY_ARRAY_IN_ARRAY));
numRows = PyArray_DIM(pyArray, 0);
numCols = PyArray_DIM(pyArray, 1);
// Transpose to column-major
Expand Down

0 comments on commit 6a10197

Please sign in to comment.