use f-string

This commit is contained in:
Jan Petykiewicz 2022-11-20 19:55:11 -08:00
parent 4144e6dc37
commit 23d5a160c8

View File

@ -61,7 +61,7 @@ def perturbed_l3(a: float, radius: float, **kwargs) -> Pattern:
xyr[:, 2] *= radius
pat = Pattern()
pat.name = 'L3p-a{:g}r{:g}rp{:g}'.format(a, radius, kwargs['perturbed_radius'])
pat.name = f'L3p-a{a:g}r{radius:g}rp{kwargs["perturbed_radius"]:g}'
pat.shapes += [shapes.Circle(radius=r, offset=(x, y),
dose=kwargs['hole_dose'],
layer=kwargs['hole_layer'])