Skip to content

Commit 8aadfbb

Browse files
committed
Fix Python bindings
1 parent 0e994c3 commit 8aadfbb

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/binding/python/Iteration.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ void init_Iteration(py::module &m)
3434
auto py_it_cont = declare_container<PyIterationContainer, Attributable>(
3535
m, "Iteration_Container");
3636

37+
py::class_<Meshes, Container<Mesh>, Attributable> meshes(m, "Meshes");
38+
py::class_<Particles, Container<ParticleSpecies>, Attributable> particles(
39+
m, "Particles");
40+
(void)meshes;
41+
(void)particles;
42+
3743
// `clang-format on/off` doesn't help here.
3844
// Writing this without a macro would lead to a huge diff due to
3945
// clang-format.

src/binding/python/Series.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,14 @@ not possible once it has been closed.
387387
.value("random_access", SnapshotWorkflow::RandomAccess)
388388
.value("synchronous", SnapshotWorkflow::Synchronous);
389389

390+
py::class_<
391+
Iterations,
392+
// huh, do we not declare this anywhere???
393+
// Container<Iteration, Iteration::IterationIndex_t>,
394+
Attributable>
395+
iterations(m, "Iterations");
396+
(void)iterations;
397+
390398
py::class_<Series, Attributable> cl(m, "Series");
391399
::auxiliary::ForEachType<
392400
::internal::DefineSeriesConstructorPerPathType,

0 commit comments

Comments
 (0)