Skip to content

All BISKO: Fix the exergetic fraction calculations and missing loss calculation in district heating - #298

Merged
jtuomist merged 7 commits into
mainfrom
fix/chp
Oct 25, 2026
Merged

jtuomist merged 7 commits into
mainfrom
fix/chp

Conversation

@jtuomist

Copy link
Copy Markdown
Contributor

Description

The model had two major problems identified by the reviewers: exergetic fraction was calculated wrong (it did not use ambient temperature), and distribution losses were missing. Now both are fixed.


✅ Pre-Merge Checklist

Type of Change

  • Set the PR's label to match the nature of this change

Testing

  • Built Unit tests (unit tests added/updated)
  • Built E2E tests (if applicable. E2E tests added/updated)
  • Authorization is tested (permissions and access controls verified)
  • Manually tested locally (functionality verified)
    Manual testing instructions
    If feature requires manual testing by reviewer, you can provide instructions here.

Internationalization & Accessibility

  • New strings are translatable (all user-facing text uses i18n)
  • Accessibility standards met (WCAG compliance, screen reader support)

Dependencies

  • Dependencies are merged (if applicable. If the change depends on other PRs e.g. kausal_common)

Screenshots/Videos (if applicable)

Add screenshots or videos demonstrating the changes if applicable.

Additional Notes

Any additional information that reviewers should know about this PR.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T13:45:36.496633Z
We couldn’t complete this review. Comment @codex review to try again.
acaf013 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jtuomist jtuomist self-assigned this Oct 24, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@kausal-code-coverage

kausal-code-coverage Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.05085% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/common/polars_ext.py 68.75% 2 Missing and 3 partials ⚠️
src/nodes/formula.py 75.00% 1 Missing and 1 partial ⚠️
src/nodes/generic.py 94.11% 1 Missing and 1 partial ⚠️
src/nodes/node.py 0.00% 0 Missing and 1 partial ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   58.57%   58.62%   +0.05%     
==========================================
  Files         367      367              
  Lines       53661    53701      +40     
  Branches     8202     8212      +10     
==========================================
+ Hits        31432    31483      +51     
+ Misses      19864    19848      -16     
- Partials     2365     2370       +5     
Flag Coverage Δ
e2e-tests 18.73% <18.64%> (-0.01%) ⬇️
unittests 57.38% <83.05%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/nodes/explanations.py 46.32% <ø> (ø)
src/nodes/node.py 57.87% <0.00%> (ø)
src/nodes/formula.py 38.10% <75.00%> (+3.38%) ⬆️
src/nodes/generic.py 37.55% <94.11%> (+0.80%) ⬆️
src/common/polars_ext.py 47.40% <68.75%> (+1.32%) ⬆️

... and 1 file with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jtuomist
jtuomist merged commit 3c48216 into main Oct 25, 2026
30 checks passed
@jtuomist
jtuomist deleted the fix/chp branch October 25, 2026 07:38
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