Add arbitrary identifier for labels and subpattern/repetition

This commit is contained in:
Jan Petykiewicz 2019-05-17 00:34:01 -07:00
commit 0b962999b2
3 changed files with 11 additions and 2 deletions

View file

@ -3,7 +3,7 @@
instances of a Pattern in the same parent Pattern.
"""
from typing import Union, List, Dict
from typing import Union, List, Dict, Tuple
import copy
import numpy
@ -37,6 +37,8 @@ class GridRepetition:
a_count = None # type: int
b_count = 1 # type: int
identifier: Tuple
def __init__(self,
pattern: 'Pattern',
a_vector: numpy.ndarray,
@ -77,6 +79,7 @@ class GridRepetition:
self.a_count = a_count
self.b_count = b_count
self.identifier = ()
self.pattern = pattern
self.offset = offset
self.rotation = rotation