Skip to content

Commit

Permalink
Fix bug in example. (#212)
Browse files Browse the repository at this point in the history
* Fix bug in example.

Co-authored-by: Lukas Turcani <lukasturcani93@gmail.com>
  • Loading branch information
andrewtarzia and lukasturcani committed Jul 29, 2020
1 parent e5c267a commit d26e94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stk/molecular/topology_graphs/host_guest/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit d26e94a

Please sign in to comment.