|
casacore
|
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... | |
Convert Casacore objects to/from Python (using Boost.Python)
See below for an overview of the classes in this module.
Public interface
Converters contains functions to convert the important Casacore objects to/from Python using the Boost.Python package. Converters for the following Casacore classes exist:
Array<String> object is converted to a list, while a higher dimensioned Array<String> object is converted to/from a dict containing the shape and the values as a list. However, conversion from a numpy string array is supported. RuntimeError exception. Only the casacore::IterError exception is mapped to a Python StopIteration exception. The converts from Python to C++ can handle some special numpy objects. Such objects can also be contained in sequences or dicts.
int, but instead a type as numpy.int32. The converters can handle such types and convert them correctly to a scalar. array(1.0) is a somewhat peculiar numpy object. It has an empty shape and cannot be indexed. It is handled correctly by the from converters and handled as a scalar value. array([])) is handled as a None value. | Bool casacore::python::PycArrayCheck | ( | PyObject * | obj_ptr | ) |
A class to convert an Array to/from Python objects.
Public interface
Check if the PyObject is an array object.
Definition at line 35 of file PycArrayComCC.h.
Referenced by makeArray().
1.8.5