소스 검색

Merge

master
Pete Shadbolt 6 년 전
부모
커밋
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))


불러오는 중...
취소
저장