29 #ifndef PYRAP_PYCARRAY_H
30 #define PYRAP_PYCARRAY_H
34 #include <boost/python.hpp>
35 #include <boost/python/object.hpp>
36 #include <casacore/casa/Arrays/Array.h>
37 #include <casacore/casa/Containers/ValueHolder.h>
38 #include <casacore/casa/Utilities/DataType.h>
39 #include <casacore/casa/Exceptions/Error.h>
100 {
return boost::python::incref(
makeobject(
c).ptr()); }
Bool PycArrayCheck(PyObject *obj_ptr)
const Double c
Fundamental physical constants (SI units):
DataType PycArrayScalarType(PyObject *obj_ptr)
Get the data type of the array scalar object.
Bool PycArrayScalarCheck(PyObject *obj_ptr)
Check if the PyObject is an array scalar object.
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Do the actual making of the PyArrayObject.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
static ValueHolder makeArray(PyObject *obj_ptr, Bool copyData=False)
Constructs an Array from a Python object.
static ValueHolder makeScalar(PyObject *obj_ptr)
Construct a scalar from an array scalar (i.e.
static ValueHolder makeArrayFromDict(PyObject *obj_ptr)
Construct an Array<String> from a special Python dict object.
static boost::python::object makeobject(Array< T > const &arr)
static PyObject * convert(Array< T > const &c)