Skip to content

Commit f001a87

Browse files
fix: logo removal height issues (#2357)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 445087d commit f001a87

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/changelog.d/2357.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Logo removal height issues

src/ansys/geometry/core/tools/prepare_tools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ def find_logos(
370370
bodies = [] if bodies is None else bodies
371371

372372
# Convert the height inputs to Distance if they are not already
373-
if min_height:
373+
if min_height is not None:
374374
min_height = min_height if isinstance(min_height, Distance) else Distance(min_height)
375-
if max_height:
375+
if max_height is not None:
376376
max_height = max_height if isinstance(max_height, Distance) else Distance(max_height)
377377

378378
response = self._grpc_client._services.prepare_tools.find_logos(
@@ -432,9 +432,9 @@ def find_and_remove_logos(
432432
bodies = [] if bodies is None else bodies
433433

434434
# Convert the height inputs to Distance if they are not already
435-
if min_height:
435+
if min_height is not None:
436436
min_height = min_height if isinstance(min_height, Distance) else Distance(min_height)
437-
if max_height:
437+
if max_height is not None:
438438
max_height = max_height if isinstance(max_height, Distance) else Distance(max_height)
439439

440440
response = self._grpc_client._services.prepare_tools.find_and_remove_logos(

0 commit comments

Comments
 (0)