From 6886360f6d7857f46047ccacf4bdc192d5dedeb5 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 29 Mar 2022 18:22:53 -0700 Subject: [PATCH] fix getting displacements in Arbitrary repetition --- masque/repetition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/repetition.py b/masque/repetition.py index f9eb330..3b3670e 100644 --- a/masque/repetition.py +++ b/masque/repetition.py @@ -312,7 +312,7 @@ class Arbitrary(LockableImpl, Repetition, metaclass=AutoSlots): @displacements.setter 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 self._displacements = vala