From 9003669b40b0e33f1635c423d97e787ea39a21c8 Mon Sep 17 00:00:00 2001 From: hrocho Date: Sun, 6 Dec 2020 03:13:23 +0100 Subject: [PATCH] py config le switch --- pymodule/pycatima.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymodule/pycatima.cpp b/pymodule/pycatima.cpp index 1a58cc2..990e2d0 100644 --- a/pymodule/pycatima.cpp +++ b/pymodule/pycatima.cpp @@ -270,11 +270,13 @@ PYBIND11_MODULE(pycatima,m){ .def_readwrite("z_effective", &Config::z_effective) .def_readwrite("corrections", &Config::corrections) .def_readwrite("calculation", &Config::calculation) + .def_readwrite("low_energy", &Config::low_energy) .def("get",[](const Config &r){ py::dict d; d["z_effective"] = r.z_effective; d["corrections"] = r.corrections; d["calculation"] = r.calculation; + d["low_energy"] = r.low_energy; return d; }) .def("__str__",[](const Config &r){ @@ -282,6 +284,7 @@ PYBIND11_MODULE(pycatima,m){ s = "z_effective = "+std::to_string(r.z_effective); s += ", corrections = "+std::to_string(r.corrections); s += ", calculation = "+std::to_string(r.calculation); + s += ", low_energy = "+std::to_string(r.low_energy); return s; });