Skip to content

Commit 8d1d509

Browse files
committed
[clair] add missing module.wrap.cxx updates
1 parent 76a786d commit 8d1d509

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

python/triqs_xca/module.wrap.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ ad : {par_6}
6262
{c2py::python_typename<const triqs::atom_diag::atom_diag<0> &>()}});
6363
// compute_self_energy
6464
static auto const fun_0 = c2py::dispatcher_f_kw_t{
65-
c2py::cmethod([](DiagramEvaluator &self, nda::array<int, 2> topology) { return self.compute_self_energy(topology); }, "self", "topology"),
66-
c2py::cmethod([](DiagramEvaluator &self, nda::array<int, 2> topology, int f_ix) { return self.compute_self_energy(topology, f_ix); }, "self",
67-
"topology", "f_ix")};
65+
c2py::cmethod([](DiagramEvaluator &self, nda::array_const_view<int, 2> topology) { return self.compute_self_energy(topology); }, "self",
66+
"topology"),
67+
c2py::cmethod([](DiagramEvaluator &self, nda::array_const_view<int, 2> topology, int f_ix) { return self.compute_self_energy(topology, f_ix); },
68+
"self", "topology", "f_ix")};
6869

6970
// get_num_backbones
70-
static auto const fun_1 = c2py::dispatcher_f_kw_t{
71-
c2py::cmethod([](DiagramEvaluator &self, nda::array<int, 2> topology) { return self.get_num_backbones(topology); }, "self", "topology")};
71+
static auto const fun_1 = c2py::dispatcher_f_kw_t{c2py::cmethod(
72+
[](DiagramEvaluator &self, nda::array_const_view<int, 2> topology) { return self.get_num_backbones(topology); }, "self", "topology")};
7273

7374
// reset
7475
static auto const fun_2 = c2py::dispatcher_f_kw_t{c2py::cmethod([](DiagramEvaluator &self) { return self.reset(); }, "self")};

0 commit comments

Comments
 (0)