Skip to content

Commit

Permalink
refactor: Expose IMaterialDecorator::decorate to python (acts-project…
Browse files Browse the repository at this point in the history
…#3819)

Exposes the `decorate` function to python, so the decoration can itself be steered from python if needed.

Part of acts-project#3502
  • Loading branch information
paulgessinger authored and Rosie-Hasan committed Nov 13, 2024
1 parent f927422 commit 82bc04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Examples/Python/src/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ void addMaterial(Context& ctx) {
{
py::class_<Acts::IMaterialDecorator,
std::shared_ptr<Acts::IMaterialDecorator>>(m,
"IMaterialDecorator");
"IMaterialDecorator")
.def("decorate", py::overload_cast<Surface&>(
&Acts::IMaterialDecorator::decorate, py::const_));
}

{
Expand Down

0 comments on commit 82bc04b

Please sign in to comment.