From b508d7cefe27e3b1923165e55fad067823e3d341 Mon Sep 17 00:00:00 2001 From: Austin Schneider Date: Fri, 13 Sep 2024 22:15:48 -0600 Subject: [PATCH] to_str --> to_repr --- projects/dataclasses/private/pybindings/dataclasses.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/dataclasses/private/pybindings/dataclasses.cxx b/projects/dataclasses/private/pybindings/dataclasses.cxx index 04709bfa..fe082aff 100644 --- a/projects/dataclasses/private/pybindings/dataclasses.cxx +++ b/projects/dataclasses/private/pybindings/dataclasses.cxx @@ -151,7 +151,7 @@ PYBIND11_MODULE(dataclasses, m) { py::class_>(m, "InteractionRecord") .def(py::init<>()) .def("__str__", [](InteractionRecord const & r) { return to_str(r); }) - .def("__repr__", [](InteractionRecord const & r) { return to_str(r); }) + .def("__repr__", [](InteractionRecord const & r) { return to_repr(r); }) .def_readwrite("signature",&InteractionRecord::signature) .def_readwrite("primary_mass",&InteractionRecord::primary_mass) .def_readwrite("primary_momentum",&InteractionRecord::primary_momentum)