Skip to content
Snippets Groups Projects
Commit 38d5cede authored by David Lanzendörfer's avatar David Lanzendörfer
Browse files

Add bbox flag

Allow for disabling the bounding box
parent 5c60c44e
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,8 @@ class DanubeTestWafer(gf.Component):
if not no_csv:
self.csv = DanubeRiverCSV(self)
self << Dbbox.move([ddx,ddy])
if not self.config.disable_bounding_box():
self << Dbbox.move([ddx,ddy])
self.add_rows(rows)
def write_gds(self, outpath):
......
......@@ -35,6 +35,12 @@ class DanubeConfig(Config):
ret.append(0 if m is None else m)
return ret
def disable_bounding_box(self):
res = self.get_section_value('die', 'disableboundingbox')
if res is not None:
res = res.strip()
return (res == 'true')
def get_structue_label_size(self):
l = self.get_section_value_unit('die', 'labelsize')
return l
......
......@@ -10,6 +10,7 @@ Name = gf180_teststructures
Spacing = 5um
LeftMargin = 5um
RightMargin = 5um
DisableBoundingBox = true
[Pad]
Width = 40um
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment