瀏覽代碼

Merge

master
Pete Shadbolt 7 年之前
父節點
當前提交
44d9ff735a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      examples/visualization/stress.py

+ 1
- 1
examples/visualization/stress.py 查看文件

@@ -23,7 +23,7 @@ def offset_unit_cell(unit_cell, offset):
def lattice(unit_cell, size):
""" Generate a lattice from a unit cell """
edges = set()
for offset in itertools.product(*list(map(range, size))):
for offset in itertools.product(*map(range, size)):
edges |= offset_unit_cell(unit_cell, offset)

nodes = set(itertools.chain(*edges))


Loading…
取消
儲存