mirror of https://github.com/KLayout/klayout.git
Bug fixes, new test details
This commit is contained in:
parent
7c0934ec8a
commit
b6fba7bb69
|
|
@ -248,7 +248,7 @@ shape_collection_processed_impl (const db::DeepLayer &input, const shape_collect
|
|||
heap.clear ();
|
||||
filter.process (s, heap);
|
||||
for (auto i = heap.begin (); i != heap.end (); ++i) {
|
||||
if (si->prop_id ()) {
|
||||
if (i->properties_id ()) {
|
||||
delivery_wp.put (*i);
|
||||
} else {
|
||||
delivery.put (i->base ());
|
||||
|
|
|
|||
|
|
@ -5427,7 +5427,7 @@ CODE
|
|||
elsif data.is_a?(RBA::Edges)
|
||||
f = RBA::EdgeFilterBase::expression_filter(expression.expression, dbu: @engine.dbu, variables: variables)
|
||||
elsif data.is_a?(RBA::EdgePairs)
|
||||
f = RBA::EdgeFilterBase::expression_filter(expression.expression, dbu: @engine.dbu, variables: variables)
|
||||
f = RBA::EdgePairFilterBase::expression_filter(expression.expression, dbu: @engine.dbu, variables: variables)
|
||||
elsif data.is_a?(RBA::Texts)
|
||||
f = RBA::TextFilterBase::expression_filter(expression.expression, dbu: @engine.dbu, variables: variables)
|
||||
else
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@ end
|
|||
|
||||
l1 = input(1, 0, enable_props)
|
||||
l2 = input(2, 0, enable_props)
|
||||
l3 = labels(3, 0, enable_props)
|
||||
|
||||
l1.output(1, 0)
|
||||
l2.output(2, 0)
|
||||
l3.output(3, 0)
|
||||
|
||||
l2.evaluated("put(2, to_f(value(17))*2.0)").output(10, 0)
|
||||
l2.evaluated("put(2, to_f(value(17))*factor)", { "factor" => 3.0 }, true).output(11, 0)
|
||||
|
|
@ -52,3 +54,13 @@ d.select_if(aniso_and_scales("shape.bbox.width<=5")).output(44, 0)
|
|||
l2.split_if("to_f(value(17))<3.0")[0].output(50, 0)
|
||||
l2.split_if("to_f(value(17))<3.0")[1].output(51, 0)
|
||||
|
||||
# other types for evaluate
|
||||
l3.evaluated("put(1, shape.string)").output(60, 0)
|
||||
l1.edges.evaluated("put(1, shape.length)").output(61, 0)
|
||||
l1.width(3.5.um).evaluated("put(1, shape.distance)").output(62, 0)
|
||||
|
||||
# other types for select_if
|
||||
l3.selected_if("shape.string=='TEXT1'").output(70, 0)
|
||||
l1.edges.selected_if("shape.length<3.5").output(71, 0)
|
||||
l1.width(3.5.um).selected_if("shape.distance<2.5").output(72, 0)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue