casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
casacore::python::casa_array_from_python Struct Reference

#include <PycArray.h>

Static Public Member Functions

static ValueHolder makeArray (PyObject *obj_ptr, Bool copyData=False)
 Constructs an Array from a Python object. More...
 
static ValueHolder makeArrayFromDict (PyObject *obj_ptr)
 Construct an Array<String> from a special Python dict object. More...
 
static ValueHolder makeScalar (PyObject *obj_ptr)
 Construct a scalar from an array scalar (i.e. More...
 

Detailed Description

Definition at line 67 of file PycArray.h.

Member Function Documentation

static ValueHolder casacore::python::casa_array_from_python::makeArray ( PyObject *  obj_ptr,
Bool  copyData = False 
)
static

Constructs an Array from a Python object.

If copyData=False, the array data is only copied if needed meaning that the Array object in the ValueHolder can reference the data in Python array. That should only be used if the ValueHolder and its Array will be destructed before the Python array.

static ValueHolder casacore::python::casa_array_from_python::makeArrayFromDict ( PyObject *  obj_ptr)
static

Construct an Array<String> from a special Python dict object.

static ValueHolder casacore::python::casa_array_from_python::makeScalar ( PyObject *  obj_ptr)
static

Construct a scalar from an array scalar (i.e.

element in array).


The documentation for this struct was generated from the following file: