Closed glemi closed 7 years ago
Hi @glemi,
try out my branch here: https://github.com/mabl/gdsCAD/tree/fix_gds_import
This should work also for nestes Cell references. I've but up a pull request here, but looks like @hohlraum is busy.
Hi @mabl! I suffered from the same problem. Your branch seems to be working! Thanks!
Fixed by PR #33.
in gdsCAD version 0.4.5, in core.py I get an error when using GdsImport on a particular .gds file.
here is the code where the error occurrs (around line 2174):
_incomplete
is initialized inGdsImport
as an empty list[]
but it's outside the scope of where_create_reference
is defined. It is also used in_create_array
, and would probably generate the same error when executed.I have tried out-commenting the
if
block in_create_reference
but then I get errors later on becauseref.ref_cell
is a string instead of aCell
object.edit: I fixed this to some extent by declaring _incomplete as a global variable in the core.py module. However now when GdsImprt tries to resolve the references, it looks up the string value of
ref.ref_cell
incell_dict
, which again is not defined (around line 2041).