SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 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:
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

SourceXtractor::PythonInterpreter::~PythonInterpreter ( )
virtual

Definition at line 69 of file PythonInterpreter.cpp.

References Pyston::GILLocker::getLockCount(), and Elements::Logging::info().

Here is the call graph for this function:

SourceXtractor::PythonInterpreter::PythonInterpreter ( )
private

Definition at line 52 of file PythonInterpreter.cpp.

References PYSTON_MODULE_INIT.

Member Function Documentation

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

Definition at line 199 of file PythonInterpreter.cpp.

References e, Pyston::Exception::log(), m_measurement_config, and std::string::push_back().

Here is the call graph for this function:

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

Definition at line 151 of file PythonInterpreter.cpp.

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

Here is the call graph for this function:

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:

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:

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:

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:

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:

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

Definition at line 288 of file PythonInterpreter.cpp.

References e, Pyston::Exception::log(), and m_measurement_config.

Here is the call graph for this function:

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:

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

Definition at line 133 of file PythonInterpreter.cpp.

References e, Pyston::Exception::log(), m_measurement_config, and std::make_pair().

Here is the call graph for this function:

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

Definition at line 169 of file PythonInterpreter.cpp.

References e, Pyston::Exception::log(), m_measurement_config, std::move(), and std::vector< T >::push_back().

Here is the call graph for this function:

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

Definition at line 309 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:

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:

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:

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:

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:

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

Definition at line 124 of file PythonInterpreter.cpp.

References e, Pyston::Exception::log(), and m_measurement_config.

Here is the call graph for this function:

Member Data Documentation

PyOutputWrapper SourceXtractor::PythonInterpreter::m_err_wrapper
private

Definition at line 87 of file PythonInterpreter.h.

Referenced by runFile().

boost::python::object SourceXtractor::PythonInterpreter::m_measurement_config
private
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: