From d4f882638a5697ad9b147e9366bdf07cb79dcb37 Mon Sep 17 00:00:00 2001 From: Austin Schneider Date: Thu, 12 Sep 2024 12:51:41 -0600 Subject: [PATCH] Add constructor with contents to pybindings --- projects/injection/private/pybindings/injection.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/injection/private/pybindings/injection.cxx b/projects/injection/private/pybindings/injection.cxx index 97c3bc1c..74a2ce20 100644 --- a/projects/injection/private/pybindings/injection.cxx +++ b/projects/injection/private/pybindings/injection.cxx @@ -43,6 +43,7 @@ PYBIND11_MODULE(injection,m) { class_, Process>(m, "PhysicalProcess") .def(init<>()) + .def(init>()) .def_property("primary_type", &Process::GetPrimaryType, &Process::SetPrimaryType) .def_property("interactions", &Process::GetInteractions, &Process::SetInteractions) .def_property("distributions", &PhysicalProcess::GetPhysicalDistributions, &PhysicalProcess::SetPhysicalDistributions) @@ -50,6 +51,7 @@ PYBIND11_MODULE(injection,m) { class_, Process>(m, "PrimaryInjectionProcess") .def(init<>()) + .def(init>()) .def_property("primary_type", &Process::GetPrimaryType, &Process::SetPrimaryType) .def_property("interactions", &Process::GetInteractions, &Process::SetInteractions) .def_property("distributions", &PrimaryInjectionProcess::GetPrimaryInjectionDistributions, &PrimaryInjectionProcess::SetPrimaryInjectionDistributions) @@ -57,6 +59,7 @@ PYBIND11_MODULE(injection,m) { class_, Process>(m, "SecondaryInjectionProcess") .def(init<>()) + .def(init>()) .def_property("secondary_type", &SecondaryInjectionProcess::GetSecondaryType, &SecondaryInjectionProcess::SetSecondaryType) .def_property("interactions", &Process::GetInteractions, &Process::SetInteractions) .def_property("distributions", &SecondaryInjectionProcess::GetSecondaryInjectionDistributions, &SecondaryInjectionProcess::SetSecondaryInjectionDistributions)