fix calculation of displacements

This commit is contained in:
Jan Petykiewicz 2022-03-29 18:22:20 -07:00 committed by jan
parent 67d312162a
commit b5ddb5749c

View File

@ -654,7 +654,7 @@ def repetition_fata2masq(
b_count=rep.b_count) b_count=rep.b_count)
elif isinstance(rep, fatamorgana.ArbitraryRepetition): elif isinstance(rep, fatamorgana.ArbitraryRepetition):
displacements = numpy.cumsum(numpy.column_stack((rep.x_displacements, displacements = numpy.cumsum(numpy.column_stack((rep.x_displacements,
rep.y_displacements))) rep.y_displacements)), axis=0)
displacements = numpy.vstack(([0, 0], displacements)) displacements = numpy.vstack(([0, 0], displacements))
mrep = Arbitrary(displacements) mrep = Arbitrary(displacements)
elif rep is None: elif rep is None: