40ValueHolder
makeArray(PyObject* obj_ptr, Bool copyData);
47 static void toPy(
void* to,
const T* from,
size_t nr);
48 static void fromPy(T* to,
const void* from,
size_t nr);
49 static Array<T>
toArray(
const IPosition& shape,
void* data,
bool copy);
54 static void toPy(
void* to,
const Complex* from,
size_t nr);
55 static void fromPy(Complex* to,
const void* from,
size_t nr);
56 static Array<Complex>
toArray(
const IPosition& shape,
void* data,
bool copy);
61 static void toPy(
void* to,
const DComplex* from,
size_t nr);
62 static void fromPy(DComplex* to,
const void* from,
size_t nr);
63 static Array<DComplex>
toArray(
const IPosition& shape,
void* data,
bool copy);
68 static void toPy(
void* to,
const String* from,
size_t nr);
69 static void fromPy(String* to,
const void* from,
size_t nr);
70 static Array<String>
toArray(
const IPosition& shape,
void* data,
bool copy);
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)
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)