Skip to content

Commit 8ecf9bb

Browse files
committed
Small fix, bumping version to 1.3.1
1 parent 2fc1e9a commit 8ecf9bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tidy3d/components/grid/mesher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def parse_structures(
108108
struct_contains.append(self.contains_2d(bbox, struct_bbox[:struct_ind]))
109109

110110
# Figure out where to place the bounding box coordinates of current structure
111-
indsmin = np.argwhere(bbox[0, 2] < interval_coords)
111+
indsmin = np.argwhere(bbox[0, 2] <= interval_coords)
112112
indmin = int(indsmin[0])
113113
bbox0 = np.copy(bbox)
114114
bbox0[1, 2] = bbox0[0, 2]
@@ -119,7 +119,7 @@ def parse_structures(
119119
struct_list = interval_structs[max(0, indmin - 1)]
120120
interval_structs.insert(indmin, struct_list.copy())
121121

122-
indsmax = np.argwhere(bbox[1, 2] > interval_coords)
122+
indsmax = np.argwhere(bbox[1, 2] >= interval_coords)
123123
indmax = int(indsmax[-1])
124124
bbox0 = np.copy(bbox)
125125
bbox0[0, 2] = bbox0[1, 2]

tidy3d/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Defines the front end version of tidy3d"""
22

3-
__version__ = "1.3.0"
3+
__version__ = "1.3.1"

0 commit comments

Comments
 (0)