SourceXtractorPlusPlus
0.11
Please provide a description of the project.
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
() =
default
;
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, std::vector<int>
>
getFrameModelsMap
();
74
75
std::map<std::string, boost::python::object>
getModelFittingParams
();
76
77
std::vector<boost::python::object>
getMeasurementGroups
();
78
79
void
setCoordinateSystem
(
std::shared_ptr<CoordinateSystem>
coordinate_system);
80
81
private
:
82
83
PythonInterpreter
();
84
PyOutputWrapper
m_out_wrapper
,
m_err_wrapper
;
85
};
86
87
}
// end of namespace SourceXtractor
88
89
#endif // _SEIMPLEMENTATION_PYTHONINTERPRETER_H
90
SourceXtractor::PythonInterpreter::getConstantModels
std::map< int, boost::python::object > getConstantModels()
Definition:
PythonInterpreter.cpp:258
SourceXtractor::PythonInterpreter::getFreeParameters
std::map< int, boost::python::object > getFreeParameters()
Definition:
PythonInterpreter.cpp:246
std::shared_ptr
SourceXtractor::PythonInterpreter::getMeasurementImages
std::map< int, PyMeasurementImage > getMeasurementImages()
Definition:
PythonInterpreter.cpp:116
PyOutputWrapper.h
SourceXtractor::PythonInterpreter::getPointSourceModels
std::map< int, boost::python::object > getPointSourceModels()
Definition:
PythonInterpreter.cpp:262
SourceXtractor::PythonInterpreter::getMeasurementGroups
std::vector< boost::python::object > getMeasurementGroups()
Definition:
PythonInterpreter.cpp:315
SourceXtractor::PythonInterpreter::m_out_wrapper
PyOutputWrapper m_out_wrapper
Definition:
PythonInterpreter.h:84
SourceXtractor::PythonInterpreter::runCode
void runCode(const std::string &code)
Definition:
PythonInterpreter.cpp:62
SourceXtractor::PythonInterpreter::setCoordinateSystem
void setCoordinateSystem(std::shared_ptr< CoordinateSystem > coordinate_system)
Definition:
PythonInterpreter.cpp:332
PyAperture.h
SourceXtractor::PythonInterpreter::getApertureOutputColumns
std::map< std::string, std::vector< int > > getApertureOutputColumns()
Definition:
PythonInterpreter.cpp:188
SourceXtractor::PythonInterpreter::~PythonInterpreter
virtual ~PythonInterpreter()=default
SourceXtractor::PythonInterpreter::m_err_wrapper
PyOutputWrapper m_err_wrapper
Definition:
PythonInterpreter.h:84
std::map
STL class.
SourceXtractor::PythonInterpreter::getDeVaucouleursModels
std::map< int, boost::python::object > getDeVaucouleursModels()
Definition:
PythonInterpreter.cpp:274
std::string
STL class.
SourceXtractor::PythonInterpreter::getSersicModels
std::map< int, boost::python::object > getSersicModels()
Definition:
PythonInterpreter.cpp:266
SourceXtractor::PythonInterpreter::runFile
void runFile(const std::string &filename, const std::vector< std::string > &argv)
Definition:
PythonInterpreter.cpp:75
SourceXtractor::PythonInterpreter::getModelFittingParams
std::map< std::string, boost::python::object > getModelFittingParams()
Definition:
PythonInterpreter.cpp:300
SourceXtractor::PythonInterpreter::getPriors
std::map< int, boost::python::object > getPriors()
Definition:
PythonInterpreter.cpp:254
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::PythonInterpreter::getFrameModelsMap
std::map< int, std::vector< int > > getFrameModelsMap()
Definition:
PythonInterpreter.cpp:278
SourceXtractor::PyOutputWrapper
Definition:
PyOutputWrapper.h:36
conf.filename
string filename
Definition:
conf.py:63
SourceXtractor::PythonInterpreter::getExponentialModels
std::map< int, boost::python::object > getExponentialModels()
Definition:
PythonInterpreter.cpp:270
SourceXtractor::PythonInterpreter::getConstantParameters
std::map< int, boost::python::object > getConstantParameters()
Definition:
PythonInterpreter.cpp:242
SourceXtractor::PythonInterpreter::getModelFittingOutputColumns
std::vector< std::pair< std::string, std::vector< int > > > getModelFittingOutputColumns()
Definition:
PythonInterpreter.cpp:156
SourceXtractor::PythonInterpreter::getApertures
std::map< int, PyAperture > getApertures()
Definition:
PythonInterpreter.cpp:136
CoordinateSystem.h
std::vector< std::string >
SourceXtractor::PythonInterpreter::PythonInterpreter
PythonInterpreter()
Definition:
PythonInterpreter.cpp:48
PyMeasurementImage.h
SourceXtractor::PythonInterpreter::getDependentParameters
std::map< int, boost::python::object > getDependentParameters()
Definition:
PythonInterpreter.cpp:250
SourceXtractor::PythonInterpreter
Definition:
PythonInterpreter.h:35
SourceXtractor::PythonInterpreter::getSingleton
static PythonInterpreter & getSingleton()
Definition:
PythonInterpreter.cpp:43
Generated by
1.8.14