Skip to content

Commit cbcc273

Browse files
authored
fix BinGrid::__init__() arg type (#444)
1 parent c683a1a commit cbcc273

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pypartmc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ NB_MODULE(_PyPartMC, m) {
545545
;
546546

547547
nb::class_<BinGrid>(m,"BinGrid")
548-
.def(nb::init<const double, const nb::str, const double, const double>())
548+
.def(nb::init<const int, const nb::str, const double, const double>())
549549
.def("__len__", BinGrid::__len__, "returns number of bins")
550550
.def_prop_ro("edges", BinGrid::edges, "Bin edges")
551551
.def_prop_ro("centers", BinGrid::centers, "Bin centers")

0 commit comments

Comments
 (0)