Skip to content

Path rendering unit bug #267

Description

@wschmail

This seems like another bug with Unitful.jl (using DeviceLayout v1.16.0)

This works:

p = Path(Point(0nm, 0nm))
straight!(p, 10μm, Paths.Trace(1µm))

turn!(p, -π / 2, 10μm)
straight!(p, 10μm, Paths.Trace(2.0μm))

c = Cell("path", nm)
render!(c, p, GDSMeta(0))

This doesn't work (ERROR: MethodError: no method matching (::Unitful.FreeUnits{(m,), 𝐋, nothing})())

p = Path(Point(0nm, 0nm))
straight!(p, 10μm, Paths.Trace(1000nm))

turn!(p, -π / 2, 10μm)
straight!(p, 10μm, Paths.Trace(2.0μm))

c = Cell("path", nm)
render!(c, p, GDSMeta(0))

While this works again:

p = Path(nm, Point(0nm, 0nm)) # instead of Path(Point(0nm, 0nm))
straight!(p, 10μm, Paths.Trace(1000nm))

turn!(p, -π / 2, 10μm)
straight!(p, 10μm, Paths.Trace(2.0μm))

c = Cell("path", nm)
render!(c, p, GDSMeta(0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions