Skip to content

Commit c99b134

Browse files
authored
Merge pull request #280 from Aurora7913/issue279
Fix compatibility with numpy>=2.4.0
2 parents ce5595a + e32f316 commit c99b134

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ All unit tests should pass first.
5959
3. Clone your repository (or use an existing cloned copy if you've
6060
already done this once):
6161
```
62-
git clone https://github.com/<youruser>/oepnram.git
62+
git clone https://github.com/<youruser>/openram.git
6363
cd openram
6464
```
6565

compiler/base/hierarchy_layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,9 +1816,9 @@ def get_bbox(self, side="all", margin=0):
18161816
# The boundary will determine the limits to the size
18171817
# of the routing grid
18181818
boundary = layout.measureBoundary(top_name)
1819-
# These must be un-indexed to get rid of the matrix type
1820-
ll = vector(boundary[0][0], boundary[0][1])
1821-
ur = vector(boundary[1][0], boundary[1][1])
1819+
# These must be un-indexed to get rid of the numpy array type
1820+
ll = vector(boundary[0][0].item(), boundary[0][1].item())
1821+
ur = vector(boundary[1][0].item(), boundary[1][1].item())
18221822
else:
18231823
ll, ur = self.bbox
18241824

0 commit comments

Comments
 (0)