From 44d9ff735a7e98c16da09e8bcd276d9b3de6ef82 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 23 Oct 2017 19:04:17 -0700 Subject: [PATCH] Merge --- examples/visualization/stress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/visualization/stress.py b/examples/visualization/stress.py index 4b03875..6e730ab 100644 --- a/examples/visualization/stress.py +++ b/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))