diff --git a/src/Particle/ParticleContainer.H b/src/Particle/ParticleContainer.H index cef612c7..e2ac199e 100644 --- a/src/Particle/ParticleContainer.H +++ b/src/Particle/ParticleContainer.H @@ -205,7 +205,7 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr) .def_property_readonly("byte_spread", &ParticleContainerType::ByteSpread) // compile-time components - .def("set_SoA_compile_time_names", &ParticleContainerType::SetSoACompileTimeNames) + .def("set_soa_compile_time_names", &ParticleContainerType::SetSoACompileTimeNames) // runtime components .def("add_real_comp", py::overload_cast(&ParticleContainerType::AddRealComp), diff --git a/tests/test_particleContainer.py b/tests/test_particleContainer.py index 8acec6cb..4174c870 100644 --- a/tests/test_particleContainer.py +++ b/tests/test_particleContainer.py @@ -80,10 +80,10 @@ def soa_particle_container(Npart, std_geometry, distmap, boxarr, std_real_box): myt.int_array_data = [] with pytest.raises(Exception): - pc.set_SoA_compile_time_names( + pc.set_soa_compile_time_names( ["x", "y", "z", "z", "b", "c", "d", "e"], [] ) # error: z added twice - pc.set_SoA_compile_time_names(["x", "y", "z", "a", "b", "c", "d", "e"], []) + pc.set_soa_compile_time_names(["x", "y", "z", "a", "b", "c", "d", "e"], []) iseed = 1 pc.init_random(Npart, iseed, myt, False, std_real_box)