fix repetition __repr__
This commit is contained in:
parent
f312f50751
commit
5c6c10d2be
@ -539,6 +539,6 @@ class GridRepetition:
|
|||||||
mirrored = ' m{:d}{:d}'.format(*self.mirrored) if self.mirrored.any() else ''
|
mirrored = ' m{:d}{:d}'.format(*self.mirrored) if self.mirrored.any() else ''
|
||||||
dose = f' d{self.dose:g}' if self.dose != 1 else ''
|
dose = f' d{self.dose:g}' if self.dose != 1 else ''
|
||||||
locked = ' L' if self.locked else ''
|
locked = ' L' if self.locked else ''
|
||||||
bv = f', {self.b_vector}' if b_vector is not None else ''
|
bv = f', {self.b_vector}' if self.b_vector is not None else ''
|
||||||
return (f'<GridRepetition "{name}" at {self.offset} {rotation}{scale}{mirrored}{dose}'
|
return (f'<GridRepetition "{name}" at {self.offset} {rotation}{scale}{mirrored}{dose}'
|
||||||
f' {self.a_count}x{self.b_count} ({self.a_vector}{bv}){locked}>')
|
f' {self.a_count}x{self.b_count} ({self.a_vector}{bv}){locked}>')
|
||||||
|
Loading…
Reference in New Issue
Block a user