fix getting displacements in Arbitrary repetition
This commit is contained in:
parent
b5ddb5749c
commit
6886360f6d
@ -312,7 +312,7 @@ class Arbitrary(LockableImpl, Repetition, metaclass=AutoSlots):
|
|||||||
|
|
||||||
@displacements.setter
|
@displacements.setter
|
||||||
def displacements(self, val: ArrayLike) -> None:
|
def displacements(self, val: ArrayLike) -> None:
|
||||||
vala: NDArray[numpy.float64] = numpy.array(vala, dtype=float)
|
vala: NDArray[numpy.float64] = numpy.array(val, dtype=float)
|
||||||
vala = numpy.sort(vala.view([('', vala.dtype)] * vala.shape[1]), 0).view(vala.dtype) # sort rows
|
vala = numpy.sort(vala.view([('', vala.dtype)] * vala.shape[1]), 0).view(vala.dtype) # sort rows
|
||||||
self._displacements = vala
|
self._displacements = vala
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user