gdspy
gdspy copied to clipboard
may be it is a bug for GdsLibrary.new_cell()
Hello, I'm trying to using gdspy to generate inductors in large quantities, but the gdspy can only work once,and failed at the second time. The error was triggered by GdsLibrary.new_cell() and look like this: "ValueError: [GDSPY] Cell named turn1 already present in library." then I refered to the API documentation and found "new_cell(name, overwrite_duplicate=False, update_references=True)"(https://gdspy.readthedocs.io/en/stable/reference.html#gdspy.GdsLibrary.new_cell), but even I changed "overwrite_duplicate" parameter to True, the error appeared still. And then I found that new_cell function will first call Cell class to initialize a cell and then pass the cell to GdsLibrary.add() function where the overwrite_duplicate parameter has been passed,but when Cell class initialize a cell,it will also call GdsLibrary.add() and overwrite_duplicate parameter was not given and then will cause a problem