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))
This seems like another bug with Unitful.jl (using DeviceLayout v1.16.0)
This works:
This doesn't work (ERROR: MethodError: no method matching (::Unitful.FreeUnits{(m,), 𝐋, nothing})())
While this works again: