Replaced cacti tech params with already existing params. Added an existence check in design_rules.

This commit is contained in:
Hunter Nichols
2021-07-27 14:31:22 -07:00
parent 1e08005639
commit 54cbef1aff
4 changed files with 21 additions and 10 deletions
+6
View File
@@ -34,6 +34,12 @@ class design_rules(dict):
"""
self.rules[b] = c
def __contains__(self, b):
"""
Allows checking existence of rules
"""
return b in self.rules
def __getitem__(self, b):
"""
For backward compatibility with existing rules.