SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::PythonInterpreter Class Reference

#include <PythonInterpreter.h>

Collaboration diagram for SourceXtractor::PythonInterpreter:

Public Member Functions

void runFile (const std::string &filename, const std::vector< std::string > &argv)
void setupContext ()
virtual ~PythonInterpreter ()
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, boost::python::object > getOnnxModels ()
std::map< int, std::vector< int > > getFrameModelsMap ()
std::map< std::string, boost::python::object > getModelFittingParams ()

Static Public Member Functions

static PythonInterpretergetSingleton ()

Private Member Functions

 PythonInterpreter ()
std::map< int, boost::python::object > getMapFromDict (const char *object_name, const char *dict_name)

Private Attributes

PyOutputWrapper m_out_wrapper
PyOutputWrapper m_err_wrapper
boost::python::object m_measurement_config

Detailed Description

Definition at line 36 of file PythonInterpreter.h.

Constructor & Destructor Documentation

◆ ~PythonInterpreter()

SourceXtractor::PythonInterpreter::~PythonInterpreter ( )
virtual

Definition at line 69 of file PythonInterpreter.cpp.

References Pyston::GILLocker::getLockCount(), and Euclid::Configuration::logger.

Here is the call graph for this function:

◆ PythonInterpreter()

SourceXtractor::PythonInterpreter::PythonInterpreter ( )
private

Definition at line 52 of file PythonInterpreter.cpp.

References m_err_wrapper, m_out_wrapper, stderr_logger, and stdout_logger.

Referenced by getSingleton().

Member Function Documentation

◆ getApertureOutputColumns()

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

Definition at line 204 of file PythonInterpreter.cpp.

References m_measurement_config.

◆ getApertures()

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

Definition at line 154 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getConstantModels()

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

Definition at line 271 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getConstantParameters()

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

Definition at line 255 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getDependentParameters()

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

Definition at line 263 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getDeVaucouleursModels()

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

Definition at line 287 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getExponentialModels()

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

Definition at line 283 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getFrameModelsMap()

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

Definition at line 295 of file PythonInterpreter.cpp.

References m_measurement_config.

◆ getFreeParameters()

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

Definition at line 259 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getMapFromDict()

std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getMapFromDict ( const char * object_name,
const char * dict_name )
private

◆ getMeasurementImages()

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

Definition at line 135 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getModelFittingOutputColumns()

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

Definition at line 173 of file PythonInterpreter.cpp.

References std::vector< T >::emplace_back(), m_measurement_config, std::move(), and std::vector< T >::push_back().

Here is the call graph for this function:

◆ getModelFittingParams()

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

Definition at line 317 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ getOnnxModels()

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

Definition at line 291 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getPointSourceModels()

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

Definition at line 275 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getPriors()

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

Definition at line 267 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getSersicModels()

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

Definition at line 279 of file PythonInterpreter.cpp.

References getMapFromDict().

Here is the call graph for this function:

◆ getSingleton()

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

◆ runFile()

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

Definition at line 73 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

◆ setupContext()

void SourceXtractor::PythonInterpreter::setupContext ( )

Definition at line 125 of file PythonInterpreter.cpp.

References m_measurement_config.

Member Data Documentation

◆ m_err_wrapper

PyOutputWrapper SourceXtractor::PythonInterpreter::m_err_wrapper
private

Definition at line 87 of file PythonInterpreter.h.

Referenced by PythonInterpreter(), and runFile().

◆ m_measurement_config

boost::python::object SourceXtractor::PythonInterpreter::m_measurement_config
private

◆ m_out_wrapper

PyOutputWrapper SourceXtractor::PythonInterpreter::m_out_wrapper
private

Definition at line 87 of file PythonInterpreter.h.

Referenced by PythonInterpreter(), and runFile().


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