Skip to content

Commit 820b0ef

Browse files
authored
Fix typos (#113)
1 parent d089d76 commit 820b0ef

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

benchmark/polygons.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function rectangles_units(n, unit; output_dir=nothing)
2323
end
2424

2525
# Render circles using `circle_polygon` to calculate polygon points directly
26-
# (use ~maxiumum number of points for single GDSII polygon -- other extreme from rectangles)
26+
# (use ~maximum number of points for single GDSII polygon -- other extreme from rectangles)
2727
function circles_direct(n; output_dir=nothing)
2828
c = Cell{Float64}("circles")
2929
for i = 1:n

docs/src/examples/singletransmon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function configfile(sm::SolidModel; palace_build=nothing, solver_order=2, amr=0)
231231
"Domains" => Dict(
232232
"Materials" => [
233233
Dict(
234-
# Vaccuum
234+
# Vacuum
235235
"Attributes" => [attributes["vacuum"]],
236236
"Permeability" => 1.0,
237237
"Permittivity" => 1.0

docs/src/geometrylevel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dogbone = union2d([r, r2, r3]) # Boolean union of the three rectangles as a sing
2626
rounded_dogbone = Rounded(4μm)(dogbone) # Apply the Rounded style
2727
```
2828

29-
The printed output above is a bit hard to read, and it's not necessary to understand it in detail to get started. The most important information here is that `rounded_dogbone` is a certain kind of `GeometryEntity` that only describes the vertices of the dogbone polygon and the rounding radius—in particular, we have not discretized the rounded corners to represent the result as a polygon. In more detail, `rounded_dogbone` is a `StyledEntity{T,U,S}` with three type parameters: the coordinate type `T = typeof(1.0μm}`, the underlying entity type `U = ClippedPolygon{T}`, and the style `S = Rounded{T}`—that is, it is a `GeometryEntity` that composes the result of a polygon clipping (Boolean) operation with a `GeometryEntityStyle` specifying rules for rounding that entity.
29+
The printed output above is a bit hard to read, and it's not necessary to understand it in detail to get started. The most important information here is that `rounded_dogbone` is a certain kind of `GeometryEntity` that only describes the vertices of the dogbone polygon and the rounding radius—in particular, we have not discretized the rounded corners to represent the result as a polygon. In more detail, `rounded_dogbone` is a `StyledEntity{T,U,S}` with three type parameters: the coordinate type `T = typeof(1.0μm)`, the underlying entity type `U = ClippedPolygon{T}`, and the style `S = Rounded{T}`—that is, it is a `GeometryEntity` that composes the result of a polygon clipping (Boolean) operation with a `GeometryEntityStyle` specifying rules for rounding that entity.
3030

3131
## Cells and Rendering
3232

examples/SingleTransmon/SingleTransmon.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function configfile(sm::SolidModel; palace_build=nothing, solver_order=2, amr=0)
209209
"Domains" => Dict(
210210
"Materials" => [
211211
Dict(
212-
# Vaccuum
212+
# Vacuum
213213
"Attributes" => [attributes["vacuum"]],
214214
"Permeability" => 1.0,
215215
"Permittivity" => 1.0

src/backends/dxf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function save(file::File{format"DXF"}, c::Cell, python::String)
9696
println(f, "msp = doc.modelspace()")
9797
for (poly, meta) in zip(cflat.elements, cflat.element_metadata)
9898
pts = [ustrip.(μm, (point.x, point.y)) for point in points(poly)]
99-
#TODO work with units propertly. Just strips µm right now.
99+
#TODO work with units properly. Just strips µm right now.
100100
println(
101101
f,
102102
"polyline = msp.add_lwpolyline($(pts),

src/entities.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ reflect_across_line(geom, p0, p1) = Reflection(p0, p1)(geom)
239239
Return the lower-left-most corner of a rectangle bounding `ent` or `ents`.
240240
Note that this point doesn't have to be in `ent`.
241241
242-
For iterable `ents`, entities with bounding rectanges of zero width and height
242+
For iterable `ents`, entities with bounding rectangles of zero width and height
243243
will be excluded.
244244
"""
245245
lowerleft(ent::GeometryEntity) = lowerleft(to_polygons(ent))
@@ -260,7 +260,7 @@ end
260260
Return the upper-right-most corner of a rectangle bounding `ent` or `ents`.
261261
Note that this point doesn't have to be in `ent`.
262262
263-
For iterable `ents`, entities with bounding rectanges of zero width and height
263+
For iterable `ents`, entities with bounding rectangles of zero width and height
264264
will be excluded.
265265
"""
266266
upperright(ent::GeometryEntity) = upperright(to_polygons(ent))

src/paths/contstyles/compound.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Combines styles together, typically for use with a [`CompoundSegment`](@ref).
88
99
- `styles`: Array of styles making up the object. This is deep-copied by the outer
1010
constructor.
11-
- `grid`: An array of `t` values needed for rendering the parameteric path.
11+
- `grid`: An array of `t` values needed for rendering the parametric path.
1212
"""
1313
struct CompoundStyle{T <: FloatCoordinate} <: ContinuousStyle{false}
1414
styles::Vector{Style}

src/paths/contstyles/interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function extent end
1111
"""
1212
width(s::Style, t)
1313
14-
For a style `s` and parameteric argument `t`, returns the width of paths rendered.
14+
For a style `s` and parametric argument `t`, returns the width of paths rendered.
1515
"""
1616
function width end
1717

src/render/polygons.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ then it is partitioned into smaller polygons which are then rendered.
99
Environment variable `ENV["GDS_POLYGON_MAX"]` will override this constant.
1010
The partitioning algorithm implements guillotine cutting, that goes through
1111
at least one existing vertex and in manhattan directions.
12-
Cuts are selected by ad hoc optimzation for "nice" partitions.
12+
Cuts are selected by ad hoc optimization for "nice" partitions.
1313
"""
1414
function render!(c::Cell{S}, p::Polygon, meta::GDSMeta=GDSMeta(); kwargs...) where {S}
1515
if length(points(p)) <= (

src/schematics/ExamplePDK/components/Transmons/star_island.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function SchematicDrivenLayout._geometry!(cs::CoordinateSystem, isl::ExampleStar
7171
]...
7272
)
7373
island = Polygon(island_pts)
74-
positive_polys = [island] # We'll accumlate all the positive metal shapes here
74+
positive_polys = [island] # We'll accumulate all the positive metal shapes here
7575
## Draw the outer triangular coupling pads
7676
dθ_coupler_pad =
7777
π / 5 - asin((star_tip_width / 2 + island_coupler_gap) / (island_outer_radius))

0 commit comments

Comments
 (0)