Add arbitrary identifier for labels and subpattern/repetition
This commit is contained in:
parent
703c1aa6d8
commit
0b962999b2
3 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue