Skip to content

Commit 071e6c8

Browse files
committed
Python bindings for 1d blockslicer
1 parent 18b80c2 commit 071e6c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/binding/python/ChunkInfo.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include "MPI.hpp"
2525
#include "openPMD/ChunkInfo.hpp"
26+
#include "openPMD/benchmark/mpi/OneDimensionalBlockSlicer.hpp"
2627

2728
#include <string>
2829
#include <utility> // std::move
@@ -119,6 +120,13 @@ void init_Chunk(py::module &m) {
119120
{ return ByHostname( withinNode.clone() ); } ),
120121
py::arg( "strategy_within_node" ) );
121122

123+
( void )py::class_< BlockSlicer >( m, "BlockSlicer" );
124+
125+
py::class_< OneDimensionalBlockSlicer, BlockSlicer >(
126+
m, "OneDimensionalBlockSlicer" )
127+
.def( py::init<>() )
128+
.def( py::init< Extent::value_type >(), py::arg( "dim" ) );
129+
122130
py::class_< ByCuboidSlice, Strategy >( m, "ByCuboidSlice" )
123131
.def(
124132
py::init(

0 commit comments

Comments
 (0)