You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This used to work before XSection update but now it halts with following error:
RuntimeError: Unexpected object type (expected argument of class DPoint, got Array) for argument #1 ('dpoint') in Point::from_dpoint
in C:\\Users\\PavelSmirnov\\KLayout\\salt/xsection/macros/xsection.lym:33
C:/Users/PavelSmirnov/KLayout/salt/xsection/ruby/xsection_script.rb:263:in `rescue in run_script'
C:/Users/PavelSmirnov/KLayout/salt/xsection/ruby/xsection_script.rb:180:in `run_script'
C:\\Users\\PavelSmirnov\\KLayout\\salt/xsection/macros/xsection.lym:33:in `<module:XS>'
C:\\Users\\PavelSmirnov\\KLayout\\salt/xsection/macros/xsection.lym:15:in `<main>'
I'm not sure if this is a bug or there was a syntax change with how xs_cut should be stated. Reading up on changelog it seems that a feature was introduced to specify more than one two-point cut.
This is not blocking for me since I can get XSection working by editing editing the line 200 from KLayout/salt/xsetion/ruby/xsection.rb:
if p1 && p2
# take the given line
pts << [[[ p1, p2 ]]]
else
to
if p1 && p2
# take the given line
pts << [[ p1, p2 ]]
else
The text was updated successfully, but these errors were encountered:
I recently updated XSection from 1.4 to 1.7, and noticed that my scripts relying on calling xsection using batch mode stopped working :(
Boiling the issue down, basically I have this command I execute in terminal:
This used to work before XSection update but now it halts with following error:
I'm not sure if this is a bug or there was a syntax change with how
xs_cut
should be stated. Reading up on changelog it seems that a feature was introduced to specify more than one two-point cut.This is not blocking for me since I can get XSection working by editing editing the line 200 from
KLayout/salt/xsetion/ruby/xsection.rb
:to
The text was updated successfully, but these errors were encountered: