Round middle position fix

This commit is contained in:
mrg 2020-01-24 18:00:28 +00:00
parent aa8f389f28
commit 71cbe74017
2 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class vector():
else:
self.x=float(value[0])
self.y=float(value[1])
def __getitem__(self, index):
"""
override getitem function

View File

@ -126,6 +126,8 @@ class pgate(design.design):
def extend_wells(self, middle_position):
""" Extend the n/p wells to cover whole cell """
# FIXME: float rounding problem
middle_position = middle_position.snap_to_grid()
# Add a rail width to extend the well to the top of the rail
nwell_max_offset = max(self.find_highest_layer_coords("nwell").y,
self.height + 0.5 * self.m1_width)