fix gridrepetition mirror

This commit is contained in:
jan 2020-02-10 10:09:07 -08:00
parent 2a53d8ef4d
commit a930c65d42

View File

@ -335,9 +335,9 @@ class GridRepetition:
:return: self :return: self
""" """
self.mirror_elements(axis) self.mirror_elements(axis)
self.a_vector[axis] *= -1 self.a_vector[1-axis] *= -1
if self.b_vector is not None: if self.b_vector is not None:
self.b_vector[axis] *= -1 self.b_vector[1-axis] *= -1
return self return self
def mirror_elements(self, axis: int) -> 'GridRepetition': def mirror_elements(self, axis: int) -> 'GridRepetition':