Skip to content

Commit cf98f4e

Browse files
committed
Fix doping plot in scene
1 parent 3dc27f1 commit cf98f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidy3d/components/scene.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,8 +1800,8 @@ def doping_bounds(self):
18001800
if doping > limits[1]:
18011801
limits[1] = doping
18021802
if isinstance(doping, SpatialDataArray):
1803-
min_value = np, min(doping.data)
1804-
max_value = np.max(doping.data)
1803+
min_value = np.min(doping.data.flatten())
1804+
max_value = np.max(doping.data.flatten())
18051805
if min_value < limits[0]:
18061806
limits[0] = min_value
18071807
if max_value > limits[1]:

0 commit comments

Comments
 (0)