strip padding character from gds reading

This commit is contained in:
Jesse Cirimelli-Low 2020-01-07 00:01:32 +00:00
parent 3ab99d7f9c
commit 05ab018ffc
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ class bitcell_base(design.design):
self.storage_net_offsets = []
for i in range(0, len(self.get_storage_net_names())):
for text in self.gds.getTexts(layer["metal1"]):
if self.storage_nets[i] == text:
print(text)
if self.storage_nets[i] == text.textString.rstrip('\x00'):
print(text.textString + "sucess")
return(self.storage_net_offsets)