Skip to content

Commit 264e431

Browse files
Update rocketpy/mathutils/function.py
Co-authored-by: Copilot <[email protected]>
1 parent 0203162 commit 264e431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rocketpy/mathutils/function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ def __determine_1d_domain_bounds(self, lower, upper):
650650
domain[1] = cropped[1]
651651

652652
# Input bounds have preference
653-
domain[0] = lower or domain[0]
654-
domain[1] = upper or domain[1]
653+
domain[0] = lower if lower is not None else domain[0]
654+
domain[1] = upper if upper is not None else domain[1]
655655

656656
return domain
657657

0 commit comments

Comments
 (0)