SourceXtractorPlusPlus
0.18
SourceXtractor++, the next generation SExtractor
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
SEImplementation
PythonConfig
PythonInterpreter.h
Go to the documentation of this file.
1
17
/*
18
* @file PythonInterpreter.h
19
* @author Nikolaos Apostolakos <nikoapos@gmail.com>
20
*/
21
22
#ifndef _SEIMPLEMENTATION_PYTHONINTERPRETER_H
23
#define _SEIMPLEMENTATION_PYTHONINTERPRETER_H
24
25
#include <string>
26
#include <map>
27
#include <vector>
28
#include <
SEFramework/CoordinateSystem/CoordinateSystem.h
>
29
#include <
SEImplementation/PythonConfig/PyMeasurementImage.h
>
30
#include <
SEImplementation/PythonConfig/PyAperture.h
>
31
#include <
SEImplementation/PythonConfig/PyOutputWrapper.h
>
32
33
namespace
SourceXtractor {
34
35
class
PythonInterpreter
{
36
37
public
:
38
39
static
PythonInterpreter
&
getSingleton
();
40
41
void
runCode
(
const
std::string
& code);
42
43
void
runFile
(
const
std::string
&
filename
,
const
std::vector<std::string>
& argv);
44
45
virtual
~PythonInterpreter
();
46
47
std::map<int, PyMeasurementImage>
getMeasurementImages
();
48
49
std::map<int, PyAperture>
getApertures
();
50
51
std::vector<std::pair<std::string, std::vector<int>
>>
getModelFittingOutputColumns
();
52
53
std::map<std::string, std::vector<int>
>
getApertureOutputColumns
();
54
55
std::map<int, boost::python::object>
getConstantParameters
();
56
57
std::map<int, boost::python::object>
getFreeParameters
();
58
59
std::map<int, boost::python::object>
getDependentParameters
();
60
61
std::map<int, boost::python::object>
getPriors
();
62
63
std::map<int, boost::python::object>
getConstantModels
();
64
65
std::map<int, boost::python::object>
getPointSourceModels
();
66
67
std::map<int, boost::python::object>
getSersicModels
();
68
69
std::map<int, boost::python::object>
getExponentialModels
();
70
71
std::map<int, boost::python::object>
getDeVaucouleursModels
();
72
73
std::map<int, boost::python::object>
getOnnxModels
();
74
75
std::map<int, std::vector<int>
>
getFrameModelsMap
();
76
77
std::map<std::string, boost::python::object>
getModelFittingParams
();
78
79
std::vector<boost::python::object>
getMeasurementGroups
();
80
81
void
setCoordinateSystem
(
std::shared_ptr<CoordinateSystem>
coordinate_system);
82
83
private
:
84
85
PythonInterpreter
();
86
PyOutputWrapper
m_out_wrapper
,
m_err_wrapper
;
87
};
88
89
}
// end of namespace SourceXtractor
90
91
#endif // _SEIMPLEMENTATION_PYTHONINTERPRETER_H
92
SourceXtractor::PythonInterpreter::getConstantModels
std::map< int, boost::python::object > getConstantModels()
Definition:
PythonInterpreter.cpp:278
SourceXtractor::PythonInterpreter::getFreeParameters
std::map< int, boost::python::object > getFreeParameters()
Definition:
PythonInterpreter.cpp:266
std::shared_ptr
SourceXtractor::PythonInterpreter::getMeasurementImages
std::map< int, PyMeasurementImage > getMeasurementImages()
Definition:
PythonInterpreter.cpp:136
PyOutputWrapper.h
SourceXtractor::PythonInterpreter::getPointSourceModels
std::map< int, boost::python::object > getPointSourceModels()
Definition:
PythonInterpreter.cpp:282
SourceXtractor::PythonInterpreter::getMeasurementGroups
std::vector< boost::python::object > getMeasurementGroups()
Definition:
PythonInterpreter.cpp:339
SourceXtractor::PythonInterpreter::m_out_wrapper
PyOutputWrapper m_out_wrapper
Definition:
PythonInterpreter.h:86
SourceXtractor::PythonInterpreter::runCode
void runCode(const std::string &code)
Definition:
PythonInterpreter.cpp:70
SourceXtractor::PythonInterpreter::setCoordinateSystem
void setCoordinateSystem(std::shared_ptr< CoordinateSystem > coordinate_system)
Definition:
PythonInterpreter.cpp:356
PyAperture.h
SourceXtractor::PythonInterpreter::getApertureOutputColumns
std::map< std::string, std::vector< int > > getApertureOutputColumns()
Definition:
PythonInterpreter.cpp:208
SourceXtractor::PythonInterpreter::getOnnxModels
std::map< int, boost::python::object > getOnnxModels()
Definition:
PythonInterpreter.cpp:298
SourceXtractor::PythonInterpreter::m_err_wrapper
PyOutputWrapper m_err_wrapper
Definition:
PythonInterpreter.h:86
std::map
STL class.
SourceXtractor::PythonInterpreter::getDeVaucouleursModels
std::map< int, boost::python::object > getDeVaucouleursModels()
Definition:
PythonInterpreter.cpp:294
std::string
STL class.
SourceXtractor::PythonInterpreter::getSersicModels
std::map< int, boost::python::object > getSersicModels()
Definition:
PythonInterpreter.cpp:286
SourceXtractor::PythonInterpreter::runFile
void runFile(const std::string &filename, const std::vector< std::string > &argv)
Definition:
PythonInterpreter.cpp:83
SourceXtractor::PythonInterpreter::getModelFittingParams
std::map< std::string, boost::python::object > getModelFittingParams()
Definition:
PythonInterpreter.cpp:324
SourceXtractor::PythonInterpreter::getPriors
std::map< int, boost::python::object > getPriors()
Definition:
PythonInterpreter.cpp:274
SourceXtractor::PythonInterpreter::getFrameModelsMap
std::map< int, std::vector< int > > getFrameModelsMap()
Definition:
PythonInterpreter.cpp:302
SourceXtractor::PyOutputWrapper
Definition:
PyOutputWrapper.h:36
conf.filename
string filename
Definition:
conf.py:65
SourceXtractor::PythonInterpreter::getExponentialModels
std::map< int, boost::python::object > getExponentialModels()
Definition:
PythonInterpreter.cpp:290
SourceXtractor::PythonInterpreter::getConstantParameters
std::map< int, boost::python::object > getConstantParameters()
Definition:
PythonInterpreter.cpp:262
SourceXtractor::PythonInterpreter::getModelFittingOutputColumns
std::vector< std::pair< std::string, std::vector< int > > > getModelFittingOutputColumns()
Definition:
PythonInterpreter.cpp:176
SourceXtractor::PythonInterpreter::getApertures
std::map< int, PyAperture > getApertures()
Definition:
PythonInterpreter.cpp:156
CoordinateSystem.h
std::vector< std::string >
SourceXtractor::PythonInterpreter::PythonInterpreter
PythonInterpreter()
Definition:
PythonInterpreter.cpp:51
SourceXtractor::PythonInterpreter::~PythonInterpreter
virtual ~PythonInterpreter()
Definition:
PythonInterpreter.cpp:66
PyMeasurementImage.h
SourceXtractor::PythonInterpreter::getDependentParameters
std::map< int, boost::python::object > getDependentParameters()
Definition:
PythonInterpreter.cpp:270
SourceXtractor::PythonInterpreter
Definition:
PythonInterpreter.h:35
SourceXtractor::PythonInterpreter::getSingleton
static PythonInterpreter & getSingleton()
Definition:
PythonInterpreter.cpp:46
Generated by
1.8.5