Skip to content

Commit

Permalink
extra properties to region
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafacc committed Mar 6, 2024
1 parent c19ed93 commit 7acbf02
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gds_tidy3d/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,22 @@ def x_center(self):
def y_center(self):
return (min(self.y) + max(self.y)) / 2

@property
def x_min(self):
return min(self.x)

@property
def x_max(self):
return max(self.x)

@property
def y_min(self):
return min(self.y)

@property
def y_max(self):
return max(self.y)


class component:
def __init__(self, name, structures, ports, bounds):
Expand Down

0 comments on commit 7acbf02

Please sign in to comment.