|
SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
|
#include <PythonInterpreter.h>

Static Public Member Functions | |
| static PythonInterpreter & | getSingleton () |
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 |
Definition at line 36 of file PythonInterpreter.h.
|
virtual |
Definition at line 69 of file PythonInterpreter.cpp.
References Pyston::GILLocker::getLockCount(), Elements::Logging::info(), and Euclid::Configuration::logger.

|
private |
Definition at line 52 of file PythonInterpreter.cpp.
References PYSTON_MODULE_INIT.
| std::map< std::string, std::vector< int > > SourceXtractor::PythonInterpreter::getApertureOutputColumns | ( | ) |
Definition at line 199 of file PythonInterpreter.cpp.
References e, Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

| 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(), Euclid::Configuration::logger, m_measurement_config, and std::make_pair().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getConstantModels | ( | ) |
Definition at line 264 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getConstantParameters | ( | ) |
Definition at line 248 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getDependentParameters | ( | ) |
Definition at line 256 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getDeVaucouleursModels | ( | ) |
Definition at line 280 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getExponentialModels | ( | ) |
Definition at line 276 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, std::vector< int > > SourceXtractor::PythonInterpreter::getFrameModelsMap | ( | ) |
Definition at line 288 of file PythonInterpreter.cpp.
References e, Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getFreeParameters | ( | ) |
Definition at line 252 of file PythonInterpreter.cpp.
References getMapFromDict().

|
private |
Definition at line 227 of file PythonInterpreter.cpp.
References e, std::map< K, T >::emplace(), Pyston::Exception::log(), Euclid::Configuration::logger, m_measurement_config, and std::make_pair().
Referenced by getConstantModels(), getConstantParameters(), getDependentParameters(), getDeVaucouleursModels(), getExponentialModels(), getFreeParameters(), getOnnxModels(), getPointSourceModels(), getPriors(), and getSersicModels().

| std::map< int, PyMeasurementImage > SourceXtractor::PythonInterpreter::getMeasurementImages | ( | ) |
Definition at line 133 of file PythonInterpreter.cpp.
References e, Pyston::Exception::log(), Euclid::Configuration::logger, m_measurement_config, and std::make_pair().

| std::vector< std::pair< std::string, std::vector< int > > > SourceXtractor::PythonInterpreter::getModelFittingOutputColumns | ( | ) |
Definition at line 169 of file PythonInterpreter.cpp.
References e, std::vector< T >::emplace_back(), Pyston::Exception::log(), Euclid::Configuration::logger, m_measurement_config, and std::move().

| 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().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getOnnxModels | ( | ) |
Definition at line 284 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getPointSourceModels | ( | ) |
Definition at line 268 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getPriors | ( | ) |
Definition at line 260 of file PythonInterpreter.cpp.
References getMapFromDict().

| std::map< int, boost::python::object > SourceXtractor::PythonInterpreter::getSersicModels | ( | ) |
Definition at line 272 of file PythonInterpreter.cpp.
References getMapFromDict().

|
static |
Definition at line 47 of file PythonInterpreter.cpp.
Referenced by SourceXtractor::PythonConfig::getInterpreter(), SourceXtractor::PythonConfig::initialize(), and SourceXtractor::PythonConfig::PythonConfig().
| 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(), e, std::ifstream::fail(), Pyston::Exception::log(), Euclid::Configuration::logger, m_err_wrapper, m_out_wrapper, py_argv_assign, std::vector< T >::size(), and std::system_category().

| void SourceXtractor::PythonInterpreter::setupContext | ( | ) |
Definition at line 124 of file PythonInterpreter.cpp.
References e, Pyston::Exception::log(), Euclid::Configuration::logger, and m_measurement_config.

|
private |
Definition at line 87 of file PythonInterpreter.h.
Referenced by runFile().
|
private |
Definition at line 88 of file PythonInterpreter.h.
Referenced by getApertureOutputColumns(), getApertures(), getFrameModelsMap(), getMapFromDict(), getMeasurementImages(), getModelFittingOutputColumns(), getModelFittingParams(), and setupContext().
|
private |
Definition at line 87 of file PythonInterpreter.h.
Referenced by runFile().