Skip to content

Conversation

@RHammond2
Copy link
Collaborator

Fix: Correctly apply 6 decimal precision capacity verification

This PR updates the project capacity verification to correctly check with a 6 decimal precision to avoid floating point discrepancies. In addition, all error messages spanning multiple lines are now declared as a variable to simplify the stack trace for easier debugging.

PR Checklist

  • CHANGELOG.md has been updated to describe the changes made in this PR
  • Documentation (n/a)
    • Docstrings are up-to-date
    • Related docs/ files are up-to-date, or added when necessary
    • Documentation has been rebuilt successfully
    • Examples have been updated
  • Tests pass (If not, and this is expected, please elaborate in the tests section)
  • PR description thoroughly describes the new feature, bug fix, etc.

Related issues

N/A

Impacted areas of the software

  • wombat/core/simulation_api.py
    • _setup_simulation: Updates the project capacity verification for an actual 6 digit precision check.

Additional supporting information

Python version: 3.13.11
WOMBAT version (wombat.__version__): 0.13

The addition of the error message reformatting came about from a difficult to read traceback in a failed capacity verification.

Test results, if applicable

Tests pass.

@RHammond2 RHammond2 added the bug Something isn't working label Jan 7, 2026
@RHammond2 RHammond2 merged commit 9ff7d00 into main Jan 7, 2026
11 checks passed
@RHammond2 RHammond2 deleted the enhancement/capacity-check branch January 7, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants