From ae21a2132ebea148cb430174af56b750ddad0c7b Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 28 Jul 2024 20:09:29 -0700 Subject: [PATCH] handle int-based cell references --- masque/file/oasis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/masque/file/oasis.py b/masque/file/oasis.py index ad08623..0e2305a 100644 --- a/masque/file/oasis.py +++ b/masque/file/oasis.py @@ -453,6 +453,8 @@ def read( for placement in cell.placements: target, ref = _placement_to_ref(placement, lib) + if isinstance(target, int): + target = lib.cellnames[target].nstring.string pat.refs[target].append(ref) mlib[cell_name] = pat