Skip to content

Commit 0d59dec

Browse files
committed
fix(Python): missing Identifier inheritance for RasterImage and LigthRegularGrid
1 parent 02c4ffa commit 0d59dec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bindings/python/src/image/core/raster_image.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#define PYTHON_RASTER_IMAGE( dimension ) \
3030
const auto name##dimension = \
3131
"RasterImage" + std::to_string( dimension ) + "D"; \
32-
pybind11::class_< RasterImage##dimension##D, CellArray##dimension##D >( \
33-
module, name##dimension.c_str() ) \
32+
pybind11::class_< RasterImage##dimension##D, CellArray##dimension##D, \
33+
Identifier >( module, name##dimension.c_str() ) \
3434
.def( pybind11::init< std::array< index_t, dimension > >() ) \
3535
.def( \
3636
"native_extension", &RasterImage##dimension##D::native_extension ) \

bindings/python/src/mesh/core/light_regular_grid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#define PYTHON_LIGHT_REGULAR_GRID( dimension ) \
3434
const auto name##dimension = \
3535
"LightRegularGrid" + std::to_string( dimension ) + "D"; \
36-
pybind11::class_< LightRegularGrid##dimension##D, Grid##dimension##D >( \
37-
module, name##dimension.c_str() ) \
36+
pybind11::class_< LightRegularGrid##dimension##D, Grid##dimension##D, \
37+
Identifier >( module, name##dimension.c_str() ) \
3838
.def( pybind11::init< Point< dimension >, \
3939
std::array< index_t, dimension >, \
4040
std::array< double, dimension > >() ) \

0 commit comments

Comments
 (0)