From 575f504e4b17e6d1c195e83e9824a7a7362d2cab Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 27 Oct 2020 09:26:40 -0700 Subject: [PATCH] Remove static method call --- compiler/base/contact.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/base/contact.py b/compiler/base/contact.py index 16c671d4..60d3c840 100644 --- a/compiler/base/contact.py +++ b/compiler/base/contact.py @@ -51,8 +51,8 @@ class contact(hierarchy_design.hierarchy_design): # Non-preferred directions if directions == "nonpref": - first_dir = "H" if self.get_preferred_direction(layer_stack[0])=="V" else "V" - second_dir = "H" if self.get_preferred_direction(layer_stack[2])=="V" else "V" + first_dir = "H" if tech.preferred_directions[layer_stack[0]]=="V" else "V" + second_dir = "H" if tech.preferred_directions[layer_stack[2]]=="V" else "V" self.directions = (first_dir, second_dir) # Preferred directions elif directions == "pref":