SourceXtractorPlusPlus  0.15
Please provide a description of the project.
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

◆ ~PythonInterpreter()

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

◆ PythonInterpreter()

SourceXtractor::PythonInterpreter::PythonInterpreter ( )
private

Definition at line 48 of file PythonInterpreter.cpp.

Member Function Documentation

◆ getApertureOutputColumns()

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

Definition at line 188 of file PythonInterpreter.cpp.

References e, SourceXtractor::logger, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

◆ getApertures()

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

Definition at line 136 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getConstantModels()

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

Definition at line 258 of file PythonInterpreter.cpp.

◆ getConstantParameters()

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

Definition at line 242 of file PythonInterpreter.cpp.

◆ getDependentParameters()

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

Definition at line 250 of file PythonInterpreter.cpp.

◆ getDeVaucouleursModels()

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

Definition at line 274 of file PythonInterpreter.cpp.

◆ getExponentialModels()

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

Definition at line 270 of file PythonInterpreter.cpp.

◆ getFrameModelsMap()

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

Definition at line 278 of file PythonInterpreter.cpp.

References e, SourceXtractor::logger, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

◆ getFreeParameters()

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

Definition at line 246 of file PythonInterpreter.cpp.

◆ getMeasurementGroups()

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

Definition at line 315 of file PythonInterpreter.cpp.

References e, std::vector< T >::emplace_back(), SourceXtractor::logger, and SourceXtractor::pyToElementsException().

Here is the call graph for this function:

◆ getMeasurementImages()

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

Definition at line 116 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getModelFittingOutputColumns()

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

Definition at line 156 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getModelFittingParams()

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:

◆ getPointSourceModels()

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

Definition at line 262 of file PythonInterpreter.cpp.

◆ getPriors()

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

Definition at line 254 of file PythonInterpreter.cpp.

◆ getSersicModels()

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

Definition at line 266 of file PythonInterpreter.cpp.

◆ getSingleton()

PythonInterpreter & SourceXtractor::PythonInterpreter::getSingleton ( )
static

◆ runCode()

void SourceXtractor::PythonInterpreter::runCode ( const std::string code)

Definition at line 62 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ runFile()

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

Definition at line 75 of file PythonInterpreter.cpp.

References e, conf::filename, SourceXtractor::logger, m_err_wrapper, m_out_wrapper, py_argv_assign, SourceXtractor::pyToElementsException(), and std::vector< T >::size().

Here is the call graph for this function:

◆ setCoordinateSystem()

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

Member Data Documentation

◆ m_err_wrapper

PyOutputWrapper SourceXtractor::PythonInterpreter::m_err_wrapper
private

Definition at line 84 of file PythonInterpreter.h.

Referenced by runFile().

◆ m_out_wrapper

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: