From d26e94a6f19b1a3c3c050e92737bb70e5265e187 Mon Sep 17 00:00:00 2001 From: Andrew Tarzia Date: Wed, 29 Jul 2020 21:40:55 +0100 Subject: [PATCH] Fix bug in example. (#212) * Fix bug in example. Co-authored-by: Lukas Turcani --- src/stk/molecular/topology_graphs/host_guest/complex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stk/molecular/topology_graphs/host_guest/complex.py b/src/stk/molecular/topology_graphs/host_guest/complex.py index 1d5ccab86..6178db88a 100644 --- a/src/stk/molecular/topology_graphs/host_guest/complex.py +++ b/src/stk/molecular/topology_graphs/host_guest/complex.py @@ -48,10 +48,11 @@ class Complex(TopologyGraph): .. code-block:: python + guest = stk.BuildingBlock('[Br][Br]') complex2 = stk.ConstructedMolecule( topology_graph=stk.host_guest.Complex( host=stk.BuildingBlock.init_from_molecule(host), - guest=stk.BuildingBlock('[Br][Br]'), + guest=guest, # Apply a rotation onto the guest molecule such that # the vector returned by get_direction() has the same # direction as [1, 1, 1].