fix calculation of displacements
This commit is contained in:
parent
67d312162a
commit
b5ddb5749c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue