[repetitions.Arbitrary] reassign to displacements when scaling or mirroring to trigger re-sort
This commit is contained in:
parent
9ee3c7ff89
commit
2a6458b1ac
1 changed files with 4 additions and 2 deletions
|
|
@ -391,7 +391,9 @@ class Arbitrary(Repetition):
|
|||
Returns:
|
||||
self
|
||||
"""
|
||||
self.displacements[:, 1 - axis] *= -1
|
||||
new_displacements = self.displacements.copy()
|
||||
new_displacements[:, 1 - axis] *= -1
|
||||
self.displacements = new_displacements
|
||||
return self
|
||||
|
||||
def get_bounds(self) -> NDArray[numpy.float64] | None:
|
||||
|
|
@ -416,6 +418,6 @@ class Arbitrary(Repetition):
|
|||
Returns:
|
||||
self
|
||||
"""
|
||||
self.displacements *= c
|
||||
self.displacements = self.displacements * c
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue