SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
PythonInterpreter.h
Go to the documentation of this file.
1/*
2 * Copyright © 2019-2022 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 3.0 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18/*
19 * @file PythonInterpreter.h
20 * @author Nikolaos Apostolakos <nikoapos@gmail.com>
21 */
22
23#ifndef _SEIMPLEMENTATION_PYTHONINTERPRETER_H
24#define _SEIMPLEMENTATION_PYTHONINTERPRETER_H
25
26#include <string>
27#include <map>
28#include <vector>
33
34namespace SourceXtractor {
35
37
38public:
39
41
42 void runFile(const std::string& filename, const std::vector<std::string>& argv);
43
44 void setupContext();
45
46 virtual ~PythonInterpreter();
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
80private:
81
83
85 const char* dict_name);
86
88 boost::python::object m_measurement_config;
89};
90
91} // end of namespace SourceXtractor
92
93#endif // _SEIMPLEMENTATION_PYTHONINTERPRETER_H
94
std::map< int, boost::python::object > getDeVaucouleursModels()
std::map< int, PyAperture > getApertures()
std::map< int, boost::python::object > getMapFromDict(const char *object_name, const char *dict_name)
std::map< std::string, std::vector< int > > getApertureOutputColumns()
std::map< int, boost::python::object > getDependentParameters()
std::vector< std::pair< std::string, std::vector< int > > > getModelFittingOutputColumns()
std::map< int, boost::python::object > getSersicModels()
std::map< int, boost::python::object > getPriors()
std::map< int, boost::python::object > getFreeParameters()
static PythonInterpreter & getSingleton()
std::map< int, boost::python::object > getOnnxModels()
std::map< int, boost::python::object > getExponentialModels()
std::map< int, boost::python::object > getConstantParameters()
void runFile(const std::string &filename, const std::vector< std::string > &argv)
boost::python::object m_measurement_config
std::map< int, boost::python::object > getConstantModels()
std::map< int, std::vector< int > > getFrameModelsMap()
std::map< int, PyMeasurementImage > getMeasurementImages()
std::map< int, boost::python::object > getPointSourceModels()
std::map< std::string, boost::python::object > getModelFittingParams()