Skip to content

Commit

Permalink
to_str --> to_repr
Browse files Browse the repository at this point in the history
  • Loading branch information
austinschneider committed Sep 14, 2024
1 parent 551c0df commit b508d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/dataclasses/private/pybindings/dataclasses.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ PYBIND11_MODULE(dataclasses, m) {
py::class_<InteractionRecord, std::shared_ptr<InteractionRecord>>(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)
Expand Down

0 comments on commit b508d7c

Please sign in to comment.