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 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue