diff --git a/parchmint/component.py b/parchmint/component.py index ef9e02e..0fb24cb 100644 --- a/parchmint/component.py +++ b/parchmint/component.py @@ -37,7 +37,6 @@ def __init__( Raises: Exception: [description] """ - self.name: str = name self.ID: str = ID self.params = params @@ -46,8 +45,8 @@ def __init__( self.yspan: int = yspan self._ports: List[Port] = ports_list if ports_list else [] self.layers: List[Layer] = layers if layers else [] - self.xpos = params.data["position"][0] - self.ypos = params.data["position"][1] + self.xpos = xpos + self.ypos = ypos @property def ports(self) -> List[Port]: @@ -99,9 +98,7 @@ def xpos(self, value) -> None: Args: value (int): x coordianate of the object """ - if self.params.exists("position"): - pos = self.params.get_param("position") pos[0] = value self.params.set_param("position", pos)