Skip to content

Fix: handle division by zero and improve input validation in cost pro…#16

Open
aryan-pd07 wants to merge 1 commit intoMUBENDIRAN:mainfrom
aryan-pd07:fix-division-zero
Open

Fix: handle division by zero and improve input validation in cost pro…#16
aryan-pd07 wants to merge 1 commit intoMUBENDIRAN:mainfrom
aryan-pd07:fix-division-zero

Conversation

@aryan-pd07
Copy link
Copy Markdown

Fixed multiple issues in cost processing:

  • Prevented division by zero in cost trend calculation
  • Added validation to skip invalid (non-dict) cost records
  • Updated analyze_cost to support optional threshold parameter

All cost_processor tests are now passing successfully.

This improves robustness and stability of cost analysis.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant