Skip to content

Commit

Permalink
SoA: Dynamic Attributes
Browse files Browse the repository at this point in the history
Enables to overwrite and add attributes at runtime.
  • Loading branch information
ax3l committed Feb 7, 2024
1 parent 66a47ee commit e442401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Particle/StructOfArrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void make_StructOfArrays(py::module &m, std::string allocstr)
soa_name += "_idcpu";
soa_name += "_" + allocstr;

py::class_<SOAType> py_SoA(m, soa_name.c_str());
py::class_<SOAType> py_SoA(m, soa_name.c_str(), py::dynamic_attr());
py_SoA
.def(py::init())
.def("define", &SOAType::define)
Expand Down

0 comments on commit e442401

Please sign in to comment.