SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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:
Collaboration graph
[legend]

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(), Elements::Logging::info(), 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 PYSTON_MODULE_INIT.

Member Function Documentation

◆ getApertureOutputColumns()

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

Definition at line 199 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

Here is the call graph for this function:

◆ getApertures()

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

Definition at line 151 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, 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 264 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 248 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 256 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 280 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 276 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 288 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

Here is the call graph for this function:

◆ getFreeParameters()

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

Definition at line 252 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 133 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, 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 169 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, m_measurement_config, and std::move().

Here is the call graph for this function:

◆ getModelFittingParams()

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

Definition at line 309 of file PythonInterpreter.cpp.

References 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 284 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 268 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 260 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 272 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 Pyston::Exception::log(), Euclid::Configuration::logger, m_err_wrapper, m_out_wrapper, py_argv_assign, and std::system_category().

Here is the call graph for this function:

◆ setupContext()

void SourceXtractor::PythonInterpreter::setupContext ( )

Definition at line 124 of file PythonInterpreter.cpp.

References Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

Here is the call graph for this function:

Member Data Documentation

◆ m_err_wrapper

PyOutputWrapper SourceXtractor::PythonInterpreter::m_err_wrapper
private

Definition at line 87 of file PythonInterpreter.h.

Referenced by 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 runFile().


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