spelling fix and wrong import

This commit is contained in:
Jan Petykiewicz 2020-08-15 17:41:09 -07:00
parent b4a19a3176
commit cbb5462fcb

View File

@ -14,7 +14,7 @@ from .error import PatternError, PatternLockedError
from .utils import is_scalar, rotation_matrix_2d, vector2, AutoSlots
from .repetition import Repetition
from .traits import (PositionableImpl, DoseableImpl, RotatableImpl, ScalableImpl,
Mirrorable, Pivotable, Copyable, LockableImpl, RepeatableImpl)
Mirrorable, PivotableImpl, Copyable, LockableImpl, RepeatableImpl)
if TYPE_CHECKING:
@ -152,7 +152,7 @@ class SubPattern(PositionableImpl, DoseableImpl, RotatableImpl, ScalableImpl, Mi
self.mirrored[axis] = not self.mirrored[axis]
self.rotation *= -1
if self.repetition is not None:
self.repetiton.mirror(axis)
self.repetition.mirror(axis)
return self
def get_bounds(self) -> Optional[numpy.ndarray]: