[gdsii_arrow] fix or suppress a bunch of linter messages

This commit is contained in:
Jan Petykiewicz 2025-11-12 18:50:23 -08:00
parent 01f624cb6a
commit a62deb211c

View File

@ -1,3 +1,4 @@
# ruff: noqa: ARG001, F401
""" """
GDSII file format readers and writers using the `TODO` library. GDSII file format readers and writers using the `TODO` library.
@ -380,8 +381,8 @@ def _boundaries_to_polygons(
zeros = numpy.zeros((elem_count, 2)) zeros = numpy.zeros((elem_count, 2))
raw_mode = global_args['raw_mode'] raw_mode = global_args['raw_mode']
for layer_ind, ff, cc in zip(unilayer_inds, unilayer_first, unilayer_count, strict=True): for layer_ind, ff, nn in zip(unilayer_inds, unilayer_first, unilayer_count, strict=True):
ee_inds = order[ff:ff + cc] ee_inds = order[ff:ff + nn]
layer = layer_tups[layer_ind] layer = layer_tups[layer_ind]
propless_mask = prop_counts[ee_inds] == 0 propless_mask = prop_counts[ee_inds] == 0