From 1c8dd1fc18ea167ed78c9b7ec98645c3bed872ce Mon Sep 17 00:00:00 2001 From: "U-MEDAUSTRON\\APR" Date: Wed, 2 Dec 2020 01:50:38 +0100 Subject: [PATCH] py thickness f. added --- pymodule/pycatima.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymodule/pycatima.cpp b/pymodule/pycatima.cpp index 512d441..1a58cc2 100644 --- a/pymodule/pycatima.cpp +++ b/pymodule/pycatima.cpp @@ -140,6 +140,7 @@ PYBIND11_MODULE(pycatima,m){ .def("molar_mass",py::overload_cast<>(&Material::M, py::const_), "get mass") .def("thickness",py::overload_cast<>(&Material::thickness, py::const_), "get thickness") .def("thickness",py::overload_cast(&Material::thickness), "set thickness") + .def("thickness_cm",py::overload_cast<>(&Material::thickness_cm, py::const_),"get thickness in cm unit") .def("thickness_cm",py::overload_cast(&Material::thickness_cm),"set thickness in cm unit") .def("I",py::overload_cast<>(&Material::I, py::const_), "get I") .def("I",py::overload_cast(&Material::I), "set I") @@ -150,6 +151,8 @@ PYBIND11_MODULE(pycatima,m){ .def("add",py::overload_cast(&Layers::add)) .def("add_layers",py::overload_cast(&Layers::add)) .def("num",&Layers::num) + .def("thickness",&Layers::thickness) + .def("thickness_cm",&Layers::thickness_cm) // .def("__getitem__",&Layers::operator[], py::is_operator()) .def("__getitem__",[](Layers &r, int i)->Material* {