:py:mod:`alhambra.latticedefect`
================================

.. py:module:: alhambra.latticedefect


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

   alhambra.latticedefect._generic_branch
   alhambra.latticedefect._latticedefect_tile
   alhambra.latticedefect._ppld
   alhambra.latticedefect.latticedefects



Attributes
~~~~~~~~~~

.. autoapisummary::

   alhambra.latticedefect._OE
   alhambra.latticedefect._ENDER


.. py:data:: _OE
   :value: [2, 3, 0, 1]

   

.. py:data:: _ENDER
   :value: [3, 2, 1, 0]

   

.. py:function:: _generic_branch(direction, tiles, tile, n, f=False, gms=GlueMergeSpec([]))


.. py:function:: _latticedefect_tile(tiles, tile, direction='e', n=2, gms=GlueMergeSpec([]))

   With n tiles in each branch, can tile t form a lattice defect?


.. py:function:: _ppld(res)

   Pretty-print lattice defects, to some extent.  I is the initial
   tile, A/B are the two branches, and F is the tile that
   attaches to those branches.


.. py:function:: latticedefects(ts, direction='e', depth=2, pp=True, rotate=False, gms=GlueMergeSpec([]))


