Changes between Initial Version and Version 1 of Ticket #28429, comment 17


Ignore:
Timestamp:
10/29/19 11:45:20 (23 months ago)
Author:
jipilab
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28429, comment 17

    initial v1  
    44
    55{{{
     6#!diff
    67+            import itertools import chain
    78+            even_perm_vectors = [[[0],[phi_inv**2,-phi_inv**2],[1,-1],[-(phi**2),phi**2]],
     
    1213+                cp = cartesian_product(vect)
    1314+                # The cartesian product creates duplicates, so we reduce it:
    14 +                verts += chain.from_iterable([p(tuple(c)) for p in even_perm] for c in cp) <----------- p acts here and creates duplicates
     15+                verts += chain.from_iterable([p(tuple(c)) for p in even_perm] for c in cp)
     16                                               ^-------p acts here and creates duplicates
    1517}}}