From df841c514b0d474bc372a4cdc6da4e46b46f7103 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 27 Oct 2016 17:57:48 -0600 Subject: [PATCH] Add criticality_contour_values to pybind11 interface; closes #1300 --- src/pybind11_interface.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind11_interface.cxx b/src/pybind11_interface.cxx index 2361d43b..9483990c 100644 --- a/src/pybind11_interface.cxx +++ b/src/pybind11_interface.cxx @@ -223,7 +223,7 @@ void init_CoolProp(py::module &m){ .def("all_critical_points", &AbstractState::all_critical_points) .def("build_spinodal", &AbstractState::build_spinodal) .def("get_spinodal_data", &AbstractState::get_spinodal_data) - .def("criticality_contour_values", &AbstractState::criticality_contour_values) + .def("criticality_contour_values", [](AbstractState &AS) { double L, M; AS.criticality_contour_values(L, M); return py::make_tuple(L, M); }) .def("tangent_plane_distance", &AbstractState::tangent_plane_distance) .def("T_reducing", &AbstractState::T_reducing) .def("rhomolar_reducing", &AbstractState::rhomolar_reducing)