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 @@
offset, rotation, scaling, and other such properties to the reference.
"""
from typing import Union, List, Dict
from typing import Union, List, Dict, Tuple
import copy
import numpy
@ -28,6 +28,7 @@ class SubPattern:
_dose = 1.0 # type: float
_scale = 1.0 # type: float
_mirrored = None # type: List[bool]
identifier: Tuple
def __init__(self,
pattern: 'Pattern',
@ -36,6 +37,7 @@ class SubPattern:
mirrored: List[bool]=None,
dose: float=1.0,
scale: float=1.0):
self.identifier = ()
self.pattern = pattern
self.offset = offset
self.rotation = rotation