Copyright (C) 2005, 2006 The Board of Trustees of The Leland Stanford Junior University. All Rights Reserved.
Definition in file PyDataSource.cxx.
#include <boost/python.hpp>
#include "PyDataSource.h"
#include "ListTuple.h"
#include "PyApp.h"
#include "datasrcs/DataSourceController.h"
#include "datasrcs/NTuple.h"
#include "pattern/string_convert.h"
#include "numarray/NumArrayTuple.h"
#include "numarray/num_util.h"
#include "fits/FitsNTuple.h"
#include "root/QtRootNTuple.h"
Include dependency graph for PyDataSource.cxx:
Go to the source code of this file.
Namespaces | |
namespace | hippodraw |
namespace | hippodraw::Python |
Functions | |
template<typename T> | |
void | copy_direct (boost::python::numeric::array array, std::vector< double > &col) |
Copies and converts to double, if needed, data of type T from array to fill the std::vector col. | |
void | export_DataArray () |
Export PyDataSourceWrapper. | |
void | extractVector (boost::python::numeric::array array, std::vector< double > &col) |
Extracts a vector from the numarray object. | |
void | PyDataSourceExceptionTranslator (const PyDataSource::StopIteration &e) |
void @436::copy_direct | ( | boost::python::numeric::array | array, | |
std::vector< double > & | col | |||
) | [static] |
Copies and converts to double, if needed, data of type T from array to fill the std::vector col.
Definition at line 57 of file PyDataSource.cxx.
References num_util::data(), num_util::size(), and hippodraw::Axes::T.
void @436::extractVector | ( | boost::python::numeric::array | array, | |
std::vector< double > & | col | |||
) | [static] |
Extracts a vector from the numarray object.
Extracts a vector from the numarray object array and fills the vector col. If array is contiguous, copies the data directly, otherwise copies the data element by element.
Definition at line 70 of file PyDataSource.cxx.
References num_util::iscontiguous(), num_util::rank(), num_util::size(), num_util::type(), and num_util::type2string().
Referenced by PyDataSource::saveColumnFromNumArray().