From e287fc81f431ef11fec864e6e639a3746f2d9c5b Mon Sep 17 00:00:00 2001 From: John McMaster Date: Wed, 12 Dec 2018 17:51:59 -0800 Subject: [PATCH] segmaker: fix misc messages Signed-off-by: John McMaster --- prjxray/segmaker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prjxray/segmaker.py b/prjxray/segmaker.py index 9d812c86..1443a0ad 100644 --- a/prjxray/segmaker.py +++ b/prjxray/segmaker.py @@ -75,7 +75,7 @@ class Segmaker: def set_def_bt(self, block_type): '''Set default block type when more than one block present''' assert block_type in BLOCK_TYPES, ( - "Unknown block type %r (known %r)" % (block_Type, BLOCK_TYPES)) + "Unknown block type %r (known %r)" % (block_type, BLOCK_TYPES)) self.def_bt = block_type def load_grid(self): @@ -341,7 +341,7 @@ class Segmaker: print("Used %u sites" % len(sites_used)) print("Grid DB had %u tile types" % len(tile_types_found)) assert ntags == len(tags_used), "Unused tags, %s used out of %s" % ( - len(tag_used), ntags) + len(len(tags_used)), ntags) def write(self, suffix=None, roi=False, allow_empty=False): assert self.segments_by_type, 'No data to write'