浏览代码

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))


正在加载...
取消
保存