29 #ifndef PYRAP_PYCARRAY_H
30 #define PYRAP_PYCARRAY_H
34 #include <boost/python.hpp>
35 #include <boost/python/object.hpp>
42 namespace casacore {
namespace python {
100 {
return boost::python::incref(
makeobject(c).ptr()); }
static boost::python::object makeobject(Array< T > const &arr)
DataType PycArrayScalarType(PyObject *obj_ptr)
Get the data type of the array scalar object.
Bool PycArrayCheck(PyObject *obj_ptr)
A class to convert an Array to/from Python objects.
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Do the actual making of the PyArrayObject.
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.
A holder for a value of any basic Casacore data type.
bool Bool
Define the standard types used by Casacore.
Bool PycArrayScalarCheck(PyObject *obj_ptr)
Check if the PyObject is an array scalar object.
static ValueHolder makeArray(PyObject *obj_ptr, Bool copyData=False)
Constructs an Array from a Python object.
const Double c
Fundamental physical constants (SI units):
static PyObject * convert(Array< T > const &c)