Skip to content

Commit 428e4f5

Browse files
committed
removed all the print() statements used for debugging (again. I put them back when I was trying to debug Simulation.plot_eps())
1 parent c946f1c commit 428e4f5

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

tidy3d/components/geometry/base.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ def intersections_plane(
267267
if axis != 2:
268268
last, indices = self.pop_axis((0, 1, 2), axis, transpose=transpose)
269269
to_2D = to_2D[[*list(indices), last, 3]]
270-
print(f"Geometry.intersections_plane({transpose=}), {to_2D=}") # DEBUG
271270
return self.intersections_tilted_plane(normal, origin, to_2D)
272271

273272
def intersections_2dbox(self, plane: Box, transpose: bool = False) -> list[Shapely]:
@@ -537,7 +536,6 @@ def plot(
537536
# find shapes that intersect self at plane
538537
axis, position = self.parse_xyz_kwargs(x=x, y=y, z=z)
539538
shapes_intersect = self.intersections_plane(x=x, y=y, z=z, transpose=transpose)
540-
print(f"Geometry.plot({transpose=}), {shapes_intersect=}") # DEBUG
541539

542540
plot_params = self.plot_params
543541
if viz_spec is not None:
@@ -1721,14 +1719,11 @@ def intersections_plane(
17211719
For more details refer to
17221720
`Shapely's Documentation <https://shapely.readthedocs.io/en/stable/project.html>`_.
17231721
"""
1724-
print(f"Planar.intersections_plane({transpose=})") # DEBUG
17251722
axis, position = self.parse_xyz_kwargs(x=x, y=y, z=z)
17261723
if not self.intersects_axis_position(axis, position):
17271724
return []
17281725
if axis == self.axis:
1729-
# print(f"{self._intersections_normal=}") # DEBUG
17301726
return self._intersections_normal(position, transpose=transpose)
1731-
# print(f"{self._intersections_side=}") # DEBUG
17321727
return self._intersections_side(position, axis, transpose=transpose)
17331728

17341729
@abstractmethod
@@ -2109,7 +2104,6 @@ def intersections_plane(
21092104
For more details refer to
21102105
`Shapely's Documentation <https://shapely.readthedocs.io/en/stable/project.html>`_.
21112106
"""
2112-
print(f"Box.intersections_plane({transpose=})") # DEBUG
21132107
axis, position = self.parse_xyz_kwargs(x=x, y=y, z=z)
21142108
if not self.intersects_axis_position(axis, position):
21152109
return []
@@ -2186,7 +2180,6 @@ def intersections_with(self, other, transpose: bool = False):
21862180
dim = "xyz"[normal_ind]
21872181
pos = self.center[normal_ind]
21882182
xyz_kwargs = {dim: pos}
2189-
print(f"Box.intersects_with({transpose=}), {xyz_kwargs=}") # DEBUG
21902183
shapes_plane = other.intersections_plane(**xyz_kwargs, transpose=transpose)
21912184

21922185
# intersect all shapes with the input self
@@ -3015,7 +3008,6 @@ def intersections_plane(
30153008
For more details refer to
30163009
`Shapely's Documentaton <https://shapely.readthedocs.io/en/stable/project.html>`_.
30173010
"""
3018-
print(f"ClipOperation.intersections_plane({transpose=})") # DEBUG
30193011
a = self.geometry_a.intersections_plane(x, y, z, transpose=transpose)
30203012
b = self.geometry_b.intersections_plane(x, y, z, transpose=transpose)
30213013
geom_a = shapely.unary_union([Geometry.evaluate_inf_shape(g) for g in a])
@@ -3228,7 +3220,6 @@ def intersections_plane(
32283220
For more details refer to
32293221
`Shapely's Documentation <https://shapely.readthedocs.io/en/stable/project.html>`_.
32303222
"""
3231-
print(f"GeometryGroup.intersections_plane({transpose=})") # DEBUG
32323223
if not self.intersects_plane(x, y, z):
32333224
return []
32343225
return [

tidy3d/components/geometry/polyslab.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,6 @@ def _intersections_normal(self, z: float, transpose: bool = False):
645645
For more details refer to
646646
`Shapely's Documentation <https://shapely.readthedocs.io/en/stable/project.html>`_.
647647
"""
648-
print(f"PolySlab._intersections_normal({transpose=})") # DEBUG
649648
if math.isclose(self.sidewall_angle, 0):
650649
vertices = self.reference_polygon
651650
if transpose:
@@ -695,7 +694,6 @@ def _intersections_side(self, position, axis, transpose: bool = False) -> list:
695694
For more details refer to
696695
`Shapely's Documentation <https://shapely.readthedocs.io/en/stable/project.html>`_.
697696
"""
698-
print(f"PolySlab._intersections_side({transpose=})") # DEBUG
699697

700698
# find out all z_i where the plane will intersect the vertex
701699
z0 = self.center_axis

tidy3d/components/scene.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ def plot_structures(
470470
matplotlib.axes._subplots.Axes
471471
The supplied or created matplotlib axes.
472472
"""
473-
print(f"Scene.plot_structures({transpose=})") # DEBUG
474473
medium_shapes = self._get_structures_2dbox(
475474
structures=self.to_static().sorted_structures, x=x, y=y, z=z, hlim=hlim, vlim=vlim, transpose=transpose
476475
)

tidy3d/components/structure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def plot(
174174
matplotlib.axes._subplots.Axes
175175
The supplied or created matplotlib axes.
176176
"""
177-
print(f"AbstractStructure.plot({transpose=})") # DEBUG
178177
return self.geometry.plot(x=x, y=y, z=z, ax=ax, viz_spec=self.viz_spec, transpose=transpose, **patch_kwargs)
179178

180179

0 commit comments

Comments
 (0)