Skip to content

Commit db0aa7d

Browse files
committed
Changed TransformationEstimationPointToPoint.__repr__.
* It now mirrors constructor call.
1 parent 518aab6 commit db0aa7d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cpp/pybind/pipelines/registration/registration.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,10 @@ void pybind_registration_definitions(py::module &m) {
264264
"with_scaling"_a = false)
265265
.def("__repr__",
266266
[](const TransformationEstimationPointToPoint &te) {
267-
return std::string(
268-
"TransformationEstimationPointToPoint ") +
269-
(te.with_scaling_
270-
? std::string("with scaling.")
271-
: std::string("without scaling."));
267+
return fmt::format(
268+
"TransformationEstimationPointToPoint("
269+
"with_scaling={})",
270+
te.with_scaling_ ? "True" : "False");
272271
})
273272
.def_readwrite(
274273
"with_scaling",

0 commit comments

Comments
 (0)