diff --git a/pycolmap/helpers.h b/pycolmap/helpers.h index 00c7783..c4709db 100644 --- a/pycolmap/helpers.h +++ b/pycolmap/helpers.h @@ -175,7 +175,7 @@ inline std::string CreateSummary(const T& self, bool write_type) { if (!after_subsummary) { ss << prefix; } - ss << attribute.template cast(); + ss << name.template cast(); if (py::hasattr(attribute, "summary")) { std::string summ = attribute.attr("summary") .attr("__call__")(write_type)