Skip to content

Conversation

@louispt1
Copy link
Contributor

@louispt1 louispt1 commented Dec 4, 2025

Description

This PR rounds all share graph values to 14 decimal places.
This change is to avoid floating point issues, and allow values to be easily handled with excel.

The changes go with this PR for Transformer.

@kndehaan perhaps you could functionally review these changes in the context of exporting these datasets? I tested PV27.
If you're happy with how it works, let's also get a code review from one of the developers.

Before merging:

  • Decide if we want to round all values, or just share values to 14
  • Update the reference commits to Atlas and Transformer in the relevant repositories
  • Do we need to document this anywhere?

Related Issues

Closes this ETSource Issue

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.72%. Comparing base (8db16bb) to head (cee09e8).

Files with missing lines Patch % Lines
lib/atlas/graph_values.rb 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   92.75%   92.72%   -0.04%     
==========================================
  Files          92       92              
  Lines        2650     2665      +15     
==========================================
+ Hits         2458     2471      +13     
- Misses        192      194       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@louispt1
Copy link
Contributor Author

louispt1 commented Dec 5, 2025

Ok @kndehaan I have now updated Atlas and Transformer to round all graph values to 14 decimal places.

I am tagging @mabijkerk and @noracato on this PR to initiate a discussion on whether 14 decimal places is an acceptable choice for rounding as of now? It would be good to be aligned on this decision as a team (although of course we can always change our mind).

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.

Mismatch of flows in other metals final demand network gas due to decimal rounding issue of SGQs

2 participants