Skip to content

Conversation

@jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Dec 9, 2025

Issue
Resolves #12427

Approach
Short description of the approach

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

@jonathan-eq jonathan-eq added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Dec 9, 2025
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.19%. Comparing base (dcecf86) to head (81396aa).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/ert/run_models/_create_run_path.py 86.66% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (dcecf86) and HEAD (81396aa). Click for more details.

HEAD has 7 uploads less than BASE
Flag BASE (dcecf86) HEAD (81396aa)
gui-tests 4 3
test 4 3
cli-tests 4 3
performance-and-unit-tests 4 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main   #12480       +/-   ##
===========================================
- Coverage   90.64%   76.19%   -14.46%     
===========================================
  Files         430      431        +1     
  Lines       29481    29615      +134     
===========================================
- Hits        26722    22564     -4158     
- Misses       2759     7051     +4292     
Flag Coverage Δ
cli-tests 37.70% <86.66%> (-0.17%) ⬇️
gui-tests 68.73% <73.33%> (+0.11%) ⬆️
performance-and-unit-tests ?
test 38.41% <6.66%> (-0.18%) ⬇️

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

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

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 9, 2025

CodSpeed Performance Report

Merging #12480 will not alter performance

Comparing jonathan-eq:fix-dm (e45e592) with main (21e51fd)

Summary

✅ 22 untouched

@jonathan-eq jonathan-eq force-pushed the fix-dm branch 2 times, most recently from 56793cd to 8556b3f Compare December 16, 2025 08:59
@jonathan-eq jonathan-eq changed the title Fix export to parameters.txt uses scientific notation Fix exporting parameters to runpath for design_matrix uses scientific notation Dec 16, 2025
This commit fixes the issue where Ert converts large intergers to
scientific notation when exporting design_matrix values to parameters.json, parameters.txt, and
run templates.
else:
formatted_value = str(value)
param_substituter[f"<{param_name}>"] = formatted_value
param_substituter[f"<{param_name}>"] = str(value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it just stay with the if and f"{value:.6f}" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thats the way it was before

@xjules
Copy link
Contributor

xjules commented Jan 6, 2026

Superseded by #12535

@xjules xjules closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:bug-fix Automatically categorise as bug fix in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DESIGN_MATRIX: Fix large integers get exported in scientific notation

3 participants