SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::PythonInterpreter Class Reference

#include <PythonInterpreter.h>

Collaboration diagram for SourceXtractor::PythonInterpreter:
[legend]

Public Member Functions

void runCode (const std::string &code)
 
void runFile (const std::string &filename, const std::vector< std::string > &argv)
 
virtual ~PythonInterpreter ()=default
 
std::map< int, PyMeasurementImagegetMeasurementImages ()
 
std::map< int, PyAperturegetApertures ()
 
std::vector< std::pair
< std::string, std::vector
< int > > > 
getModelFittingOutputColumns ()
 
std::map< std::string,
std::vector< int > > 
getApertureOutputColumns ()
 
std::map< int,
boost::python::object > 
getConstantParameters ()
 
std::map< int,
boost::python::object > 
getFreeParameters ()
 
std::map< int,
boost::python::object > 
getDependentParameters ()
 
std::map< int,
boost::python::object > 
getPriors ()
 
std::map< int,
boost::python::object > 
getConstantModels ()
 
std::map< int,
boost::python::object > 
getPointSourceModels ()
 
std::map< int,
boost::python::object > 
getSersicModels ()
 
std::map< int,
boost::python::object > 
getExponentialModels ()
 
std::map< int,
boost::python::object > 
getDeVaucouleursModels ()
 
std::map< int, std::vector< int > > getFrameModelsMap ()
 
std::map< std::string,
boost::python::object > 
getModelFittingParams ()
 
std::vector
< boost::python::object > 
getMeasurementGroups ()
 
void setCoordinateSystem (std::shared_ptr< CoordinateSystem > coordinate_system)
 

Static Public Member Functions

static PythonInterpretergetSingleton ()
 

Private Member Functions

 PythonInterpreter ()
 

Private Attributes

PyOutputWrapper m_out_wrapper
 
PyOutputWrapper m_err_wrapper
 

Detailed Description

Definition at line 35 of file PythonInterpreter.h.

Constructor & Destructor Documentation

virtual SourceXtractor::PythonInterpreter::~PythonInterpreter ( )
virtualdefault
SourceXtractor::PythonInterpreter::PythonInterpreter ( )
private

Definition at line 48 of file PythonInterpreter.cpp.

Member Function Documentation

std::map< std::string, std::vector< int > > SourceXtractor::PythonInterpreter::getApertureOutputColumns ( )

Definition at line 188 of file PythonInterpreter.cpp.

References e, std::string::push_back(), and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::map< int, PyAperture > SourceXtractor::PythonInterpreter::getApertures ( )

Definition at line 136 of file PythonInterpreter.cpp.

References e, std::map< K, T >::emplace(), std::make_pair(), and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getConstantModels ( )

Definition at line 258 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getConstantParameters ( )

Definition at line 242 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getDependentParameters ( )

Definition at line 250 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getDeVaucouleursModels ( )

Definition at line 274 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getExponentialModels ( )

Definition at line 270 of file PythonInterpreter.cpp.

std::map< int, std::vector< int > > SourceXtractor::PythonInterpreter::getFrameModelsMap ( )

Definition at line 278 of file PythonInterpreter.cpp.

References e, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getFreeParameters ( )

Definition at line 246 of file PythonInterpreter.cpp.

std::vector< boost::python::object > SourceXtractor::PythonInterpreter::getMeasurementGroups ( )

Definition at line 315 of file PythonInterpreter.cpp.

References e, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::map< int, PyMeasurementImage > SourceXtractor::PythonInterpreter::getMeasurementImages ( )

Definition at line 116 of file PythonInterpreter.cpp.

References e, std::make_pair(), and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::vector< std::pair< std::string, std::vector< int > > > SourceXtractor::PythonInterpreter::getModelFittingOutputColumns ( )

Definition at line 156 of file PythonInterpreter.cpp.

References e, std::move(), std::vector< T >::push_back(), and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

std::map< std::string, boost::python::object > SourceXtractor::PythonInterpreter::getModelFittingParams ( )

Definition at line 300 of file PythonInterpreter.cpp.

References std::map< K, T >::emplace(), and std::make_pair().

Here is the call graph for this function:

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getPointSourceModels ( )

Definition at line 262 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getPriors ( )

Definition at line 254 of file PythonInterpreter.cpp.

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getSersicModels ( )

Definition at line 266 of file PythonInterpreter.cpp.

PythonInterpreter & SourceXtractor::PythonInterpreter::getSingleton ( )
static
void SourceXtractor::PythonInterpreter::runCode ( const std::string code)

Definition at line 62 of file PythonInterpreter.cpp.

References std::string::c_str(), e, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

void SourceXtractor::PythonInterpreter::runFile ( const std::string filename,
const std::vector< std::string > &  argv 
)

Definition at line 75 of file PythonInterpreter.cpp.

References std::string::c_str(), e, m_err_wrapper, m_out_wrapper, py_argv_assign, SourceXtractor::pyToElementsException(), std::string::size(), and std::vector< T >::size().

Here is the call graph for this function:

void SourceXtractor::PythonInterpreter::setCoordinateSystem ( std::shared_ptr< CoordinateSystem coordinate_system)

Member Data Documentation

PyOutputWrapper SourceXtractor::PythonInterpreter::m_err_wrapper
private

Definition at line 84 of file PythonInterpreter.h.

Referenced by runFile().

PyOutputWrapper SourceXtractor::PythonInterpreter::m_out_wrapper
private

Definition at line 84 of file PythonInterpreter.h.

Referenced by runFile().


The documentation for this class was generated from the following files: