Bug in "Search And Replace" results output

edited April 2020 in KLayout Support

Hi Matthais,
I found small bug in Result report of "Search And Replace" function @ 0.26.4.
m180 cell was reported as m90.
Could you please check and confirm?
Thanks,
haru_f
----- Search Results output (CSV)-------
Instance,Parent Cell,As Seen in Top,Top Cell
"INVX1 r0 *1 0,0",TEST,,
"INVX1 r180 *1 1.14,4.94",TEST,,
"INVX1 m0 *1 0,4.94",TEST,,
"INVX1 m90 *1 1.14,0",TEST,, <-- Bug! [m180]
------ GDS (text) -------------------
SREF
SNAME INVX1
XY 0: 0
ENDEL

SREF
SNAME INVX1
STRANS 0
ANGLE 180
XY 1140: 4940
ENDEL

SREF
SNAME INVX1
STRANS -32768
XY 0: 4940
ENDEL

SREF
SNAME INVX1
STRANS -32768
ANGLE 180 <-- Correct.
XY 1140: 0
ENDEL

Comments

  • Hi haru_f,

    it's not a bug, it's a feature :)

    Mirror + rotation by 180 degree is called "m90" because it's effectively a mirroring "at the 90 degree axis" (y). So "m" means "mirror at a line with angle ".

    More here: https://www.klayout.de/doc-qt5/about/transformations.html

    Best regards,

    Matthias

  • edited April 2020

    Hi Matthais,

    "> it's not a bug, it's a feature.
    OK. I understood. :D
    Sorry not to check the document beforehand.

    Best regards,
    haru_f

Sign In or Register to comment.