When ref is LayerInfo it returns False. We could add an _is_LayerInfo() function under _is_int() to check this and another if statement here in enclosure.py to accept the LayerInfo input.
Lines 988-991 in ./kfactory/enclosure.py:
if _is_int(ref):
_ref = c.bbox(ref)
elif _is_Region(ref):
_ref = ref.bbox()
Describe the bug
When
ref
isLayerInfo
it returns False. We could add an_is_LayerInfo()
function under_is_int()
to check this and another if statement here inenclosure.py
to accept theLayerInfo
input.Lines 988-991 in
./kfactory/enclosure.py
: