From 38d5cede6c8aa7a14663d235aa0f0176b1b572e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?= <leviathan@libresilicon.com> Date: Mon, 27 Feb 2023 15:13:37 +0000 Subject: [PATCH] Add bbox flag Allow for disabling the bounding box --- DanubeRiver/__init__.py | 3 ++- DanubeRiver/config.py | 6 ++++++ configs/gf180.cfg | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/DanubeRiver/__init__.py b/DanubeRiver/__init__.py index c0e9c6c..9487bea 100644 --- a/DanubeRiver/__init__.py +++ b/DanubeRiver/__init__.py @@ -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): diff --git a/DanubeRiver/config.py b/DanubeRiver/config.py index 7bbf8b3..9238a94 100644 --- a/DanubeRiver/config.py +++ b/DanubeRiver/config.py @@ -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 diff --git a/configs/gf180.cfg b/configs/gf180.cfg index ed05c31..25fb4d4 100644 --- a/configs/gf180.cfg +++ b/configs/gf180.cfg @@ -10,6 +10,7 @@ Name = gf180_teststructures Spacing = 5um LeftMargin = 5um RightMargin = 5um +DisableBoundingBox = true [Pad] Width = 40um -- GitLab