undefined method error!

edited April 22 in KLayout Development

Hello,

can you help me to guess where's the problem lies ?

====================================================
ck_layer = input(130, 0)
output = ck_layer.drc(width < 5.um).output(333,1, "violation")

output.not_interacting(ck_layer).output(100, 0)

======================================================

and I got below error msg

Comments

  • edited April 19

    Hi Kim,

    I'm not familiar with all the inner workings of drc functions, but it looks like the output drc function will spit out kLayout's internal database type and not the drc's database type: #<RBA::EdgaPairs:> vs #<DRC::DRCLayer:>

    To get around this you would just need to adjust your code like this:

    ck_layer = input(130,0)
    output = ck_layer.drc(width < 5.um)         
    
    output.output(333,1, "violation")
    
    output.not_interacting(ck_layer).output(100,0)
    
  • edited April 21

    thanks for your comment. . but it shows bug as it is..
    it seems I need to reference not_interacting method somehow.. differently

  • Hi @mykim,

    What is your KLayout version? Your example works for me on version 0.30.0. I also think it does what it is supposed to.

    However, it does not make much sense. A "width" error marker is always inside a polygon, so there is never a "not_interacting" error marker.

    Matthias

Sign In or Register to comment.