mirror of https://github.com/VLSIDA/OpenRAM.git
fix #279: expliticly extract single number from numpy array to meet stricter numpy>=2.4.0 code hygiene
This commit is contained in:
parent
ea15a81443
commit
7382ea7dda
|
|
@ -1816,9 +1816,9 @@ class layout():
|
||||||
# The boundary will determine the limits to the size
|
# The boundary will determine the limits to the size
|
||||||
# of the routing grid
|
# of the routing grid
|
||||||
boundary = layout.measureBoundary(top_name)
|
boundary = layout.measureBoundary(top_name)
|
||||||
# These must be un-indexed to get rid of the matrix type
|
# These must be un-indexed to get rid of the numpy array type
|
||||||
ll = vector(boundary[0][0], boundary[0][1])
|
ll = vector(boundary[0][0].item(), boundary[0][1].item())
|
||||||
ur = vector(boundary[1][0], boundary[1][1])
|
ur = vector(boundary[1][0].item(), boundary[1][1].item())
|
||||||
else:
|
else:
|
||||||
ll, ur = self.bbox
|
ll, ur = self.bbox
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue