Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Fix Floating Point Assertion Error in combine_scheds Schedule Percentage Check - #20

Open
daksh777f wants to merge 3 commits into
usarfoss:mainfrom
daksh777f:feature/assertion
Open

Fix Floating Point Assertion Error in combine_scheds Schedule Percentage Check#20
daksh777f wants to merge 3 commits into
usarfoss:mainfrom
daksh777f:feature/assertion

Conversation

@daksh777f

Copy link
Copy Markdown

#Desciption
This PR fixes a bug in the combine_scheds function, where a direct equality check (sum(pcts) == 1.) on floating-point values could fail due to minor precision errors, even when the sum is logically correct.

fix #6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schedules' assertion error in float comparison

1 participant