alhambra.latticedefect#

Module Contents#

Functions#

_generic_branch(direction, tiles, tile, n[, f, gms])

_latticedefect_tile(tiles, tile[, direction, n, gms])

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

_ppld(res)

Pretty-print lattice defects, to some extent. I is the initial

latticedefects(ts[, direction, depth, pp, rotate, gms])

Attributes#

_OE

_ENDER

alhambra.latticedefect._OE = [2, 3, 0, 1][source]#
alhambra.latticedefect._ENDER = [3, 2, 1, 0][source]#
alhambra.latticedefect._generic_branch(direction, tiles, tile, n, f=False, gms=GlueMergeSpec([]))[source]#
alhambra.latticedefect._latticedefect_tile(tiles, tile, direction='e', n=2, gms=GlueMergeSpec([]))[source]#

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

alhambra.latticedefect._ppld(res)[source]#

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.

alhambra.latticedefect.latticedefects(ts, direction='e', depth=2, pp=True, rotate=False, gms=GlueMergeSpec([]))[source]#