Skip to content

Commit

Permalink
add python bindings to Structure::conect_map (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Dec 26, 2024
1 parent f11d1c4 commit 9ee2612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/mol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "make_iterator.h"
#include <nanobind/stl/bind_map.h>
#include <nanobind/stl/array.h> // for calculate_phi_psi, find_best_plane, ...
#include <nanobind/stl/map.h>
#include <nanobind/stl/string.h>
#include <nanobind/stl/vector.h>
#include <nanobind/stl/variant.h>
Expand Down Expand Up @@ -177,6 +178,7 @@ void add_mol(nb::module_& m) {
.def("add_conect", &Structure::add_conect,
nb::arg("serial1"), nb::arg("serial2"), nb::arg("order"))
.def("clear_conect", [](Structure& self) { self.conect_map.clear(); })
.def_ro("conect_map", &Structure::conect_map)
.def("assign_subchains", &assign_subchains,
nb::arg("force")=false, nb::arg("fail_if_unknown")=true)
.def("ensure_entities", &ensure_entities)
Expand Down

0 comments on commit 9ee2612

Please sign in to comment.