#ifdef WITH_NUMPY
else if(PyArray_Check(elt0) && nbOfTuples==NULL && nbOfComp==NULL)
{//DataArrayInt.New(numpyArray)
- return BuildNewInstance<DataArrayInt,int>(elt0,NPY_INT,&PyCallBackDataArrayInt_RefType,"INT32");
+ return BuildNewInstance<DataArrayInt,int>(elt0,NPY_INT32,&PyCallBackDataArrayInt_RefType,"INT32");
}
#endif
else
#ifdef WITH_NUMPY
PyObject *toNumPyArray() throw(INTERP_KERNEL::Exception) // not const. It is not a bug !
{
- return ToNumPyArray<DataArrayInt,int>(self,NPY_INT,"DataArrayInt");
+ return ToNumPyArray<DataArrayInt,int>(self,NPY_INT32,"DataArrayInt");
}
#endif
throw INTERP_KERNEL::Exception("Input numpy array should have dimension equal to 1 or 2 !");
if(PyArray_ObjectType(elt0,0)!=npyObjectType)
{
- std::ostringstream oss; oss << "Input numpy array has not of type " << msg << " at component #0 !";
+ std::ostringstream oss; oss << "Input numpy array has not the type " << msg << " at component #0 !";
throw INTERP_KERNEL::Exception(oss.str().c_str());
}
if(ndim==2)
if(PyArray_ObjectType(elt0,1)!=npyObjectType)
{
- std::ostringstream oss; oss << "Input numpy array has not of type " << msg << " at component #1 !";
+ std::ostringstream oss; oss << "Input numpy array has not the type " << msg << " at component #1 !";
throw INTERP_KERNEL::Exception(oss.str().c_str());
}
npy_intp sz0=PyArray_DIM(elt0,0);