Skip to content

Commit c94306b

Browse files
committed
JuliaFormatter
1 parent b5c5f27 commit c94306b

File tree

7 files changed

+430
-439
lines changed

7 files changed

+430
-439
lines changed

benchmark/polygons.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ end
6363
dir = mktempdir()
6464
SUITE["polygons"]["rectangles"]["render"] = @benchmarkable rectangles(10_000)
6565
SUITE["polygons"]["rectangles"]["render_gds"] =
66-
@benchmarkable rectangles(10_000, output_dir=$dir)
66+
@benchmarkable rectangles(10_000, output_dir=($dir))
6767
SUITE["polygons"]["rectangles"]["render_units"] =
6868
@benchmarkable rectangles_units(10_000, $nm)
6969
SUITE["polygons"]["rectangles"]["render_units_gds"] =
70-
@benchmarkable rectangles_units(10_000, $nm, output_dir=$dir)
70+
@benchmarkable rectangles_units(10_000, $nm, output_dir=($dir))
7171
SUITE["polygons"]["rectangles"]["render_convertunits"] =
7272
@benchmarkable rectangles_units(10_000, $μm)
7373
SUITE["polygons"]["circles"]["direct"] = @benchmarkable circles_direct(1_000)
7474
SUITE["polygons"]["circles"]["direct_gds"] =
75-
@benchmarkable circles_direct(1_000, output_dir=$dir)
75+
@benchmarkable circles_direct(1_000, output_dir=($dir))
7676
SUITE["polygons"]["circles"]["direct_units"] =
7777
@benchmarkable circles_direct_units(1_000, $nm)
7878
SUITE["polygons"]["circles"]["direct_units_gds"] =
79-
@benchmarkable circles_direct_units(1_000, $nm, output_dir=$dir)
79+
@benchmarkable circles_direct_units(1_000, $nm, output_dir=($dir))
8080
SUITE["polygons"]["circles"]["entity_delta"] = @benchmarkable circles_entity_delta(1_000)
8181
SUITE["polygons"]["circles"]["entity_atol"] = @benchmarkable circles_entity_atol(1_000)

src/paths/paths.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ function terminate!(
12061206
) where {T}
12071207
termlen = gap + rounding
12081208
iszero(termlen) && return
1209-
termsty = Termination(pa, rounding; initial=initial, cpwopen=!iszero(gap))
1209+
termsty = Termination(pa, rounding; initial=initial, cpwopen=(!iszero(gap)))
12101210
# Nonzero rounding: splice and delete to make room for rounded part
12111211
if !iszero(rounding)
12121212
orig_sty = initial ? undecorated(style0(pa)) : laststyle(pa)
@@ -1237,9 +1237,14 @@ function terminate!(
12371237
)
12381238
splice!(pa, split_idx, split(split_node, split_len))
12391239
termsty = if initial
1240-
Termination(Path(pa[2:end]), rounding; initial=initial, cpwopen=!iszero(gap))
1240+
Termination(Path(pa[2:end]), rounding; initial=initial, cpwopen=(!iszero(gap)))
12411241
else
1242-
Termination(Path(pa[1:(end - 1)]), rounding; initial=initial, cpwopen=!iszero(gap))
1242+
Termination(
1243+
Path(pa[1:(end - 1)]),
1244+
rounding;
1245+
initial=initial,
1246+
cpwopen=(!iszero(gap))
1247+
)
12431248
end
12441249
end
12451250

src/paths/routes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ function route!(
456456
)
457457
_route!(path, p_end, α_end, rule, sty, waypoints, waydirs)
458458
isapprox_angle(α1(path), α_end) || @error """
459-
Could not automatically route to destination with the correct arrival angle \
460-
(got $(α1(path)) instead of $α_end). Try adding or adjusting waypoints.\
461-
""" _group = :route
459+
Could not automatically route to destination with the correct arrival angle \
460+
(got $(α1(path)) instead of $α_end). Try adding or adjusting waypoints.\
461+
""" _group = :route
462462
pts = promote(p1(path), p_end)
463463
return isapprox(pts...; atol=atol) || @error """
464464
Could not automatically route to destination with the correct arrival point \

0 commit comments

Comments
 (0)