casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Classes | Functions

Convert Casacore objects to/from Python (using Boost.Python) More...

Modules

 Converters_module_internal_classes
 Internal Converters_module classes and functions.
 

Classes

struct  casacore::python::casa_record_to_python
 A class to convert a (Table)Record to/from Python objects. More...
 
struct  casacore::python::casa_value_to_python
 A class to convert a ValueHolder to/from Python objects. More...
 

Functions

Bool casacore::python::PycArrayCheck (PyObject *obj_ptr)
 A class to convert an Array to/from Python objects. More...
 

Detailed Description

Convert Casacore objects to/from Python (using Boost.Python)

See below for an overview of the classes in this module.

Intended use:

Public interface

Review Status

Test programs:
tConvert

Prerequisite

Synopsis

Converters contains functions to convert the important Casacore objects to/from Python using the Boost.Python package. Converters for the following Casacore classes exist:

Elements in a numpy array are called array scalars. They do not have a python type like int, but instead a type like numpy.int32. The converters can handle such types and convert them correctly to a scalar. Of course, the converters also can handle sequences containing such types.

A numpy or numarray scalar array (e.g. array(1.0) is a somewhat peculiar object that cannot be indexed. It is handled correctly by the converters and handled as a scalar value.

Function Documentation

Bool casacore::python::PycArrayCheck ( PyObject *  obj_ptr)

A class to convert an Array to/from Python objects.

Intended use:

Public interface

Synopsis

Check if the PyObject is an array object.

Definition at line 33 of file PycArrayComCC.h.