41 ValueHolder
makeArray (PyObject* obj_ptr, Bool copyData);
48 static void toPy (
void* to,
const T* from,
size_t nr);
49 static void fromPy (T* to,
const void* from,
size_t nr);
50 static Array<T>
toArray (
const IPosition& shape,
51 void* data,
bool copy);
56 static void toPy (
void* to,
const Complex* from,
size_t nr);
57 static void fromPy (Complex* to,
const void* from,
size_t nr);
58 static Array<Complex>
toArray (
const IPosition& shape,
59 void* data,
bool copy);
64 static void toPy (
void* to,
const DComplex* from,
size_t nr);
65 static void fromPy (DComplex* to,
const void* from,
size_t nr);
66 static Array<DComplex>
toArray (
const IPosition& shape,
67 void* data,
bool copy);
72 static void toPy (
void* to,
const String* from,
size_t nr);
73 static void fromPy (String* to,
const void* from,
size_t nr);
74 static Array<String>
toArray (
const IPosition& shape,
75 void* data,
bool copy);
80 void* data,
size_t slen);
83 void* data,
size_t slen);
Array< String > ArrayCopyUnicode_toArray(const IPosition &shape, void *data, size_t slen)
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Convert a Casacore array to a Python array object.
Bool PycArrayCheck(PyObject *obj_ptr)
Check if the PyObject is an array object.
Array< String > ArrayCopyStr_toArray(const IPosition &shape, void *data, size_t slen)
Bool isImported()
Check if the API is or can be imported.
ValueHolder makeArray(PyObject *obj_ptr, Bool copyData)
Convert the python array to a Casacore array in the ValueHolder.
bool Bool
Define the standard types used by Casacore.
Copy/convert the array data as needed.
static void toPy(void *to, const T *from, size_t nr)
static void fromPy(T *to, const void *from, size_t nr)
static Array< T > toArray(const IPosition &shape, void *data, bool copy)