Skip to content

Commit 8a7dfda

Browse files
zauckerclaude
andcommitted
Release 7.0.7
Fixes flattened distribution percentages entered cell-by-cell not reaching the simulation: edits were persisted as stray `#flat#` data rows instead of into the `flattened` table, so the GUI showed the values while the run read empty/stale fractions (silently wrong results, or a 500 when all-NULL). Percent edits now persist via store_flattened_data and store_data refuses `#flat#` variables. Affects all variants. Datasets already in the split state are corrected by a one-time data repair (backfill flattened fractions from the stray rows, then drop them); no schema migration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TK5t4sdc7z5SxdGvdmxoe7
1 parent 2c3d72f commit 8a7dfda

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
- 7.0.7, 2026-06-25, fritz.zaucker@oetiker.ch
2+
3+
- Fix flattened distribution percentages entered cell-by-cell not
4+
reaching the simulation. Editing a single flattened-option percent
5+
persisted it as a stray `…#flat#<option>` data row (via store_data)
6+
instead of into the `flattened` table, so the GUI showed the entered
7+
values while the run read empty or stale fractions. This produced
8+
silently wrong results, or a 500 ("flattened values sums to 0
9+
instead of 100") when the `flattened` table was all-NULL — e.g. the
10+
Regional model's DairyCow housing type. Percent edits now persist
11+
the whole distribution via store_flattened_data
12+
(`PropTable.__dataChanged_func``NavFolder.storeFlattenedForEdit`),
13+
and `store_data` now refuses `#flat#` variables as a safeguard.
14+
Affects all variants. Frontend-plus-backend change. Datasets already
15+
in the split state are corrected by a one-time data repair that
16+
backfills the `flattened` fractions from the stray rows and removes
17+
them (no schema migration).
18+
19+
120
- 7.0.6, 2026-06-23, fritz.zaucker@oetiker.ch
221

322
- Fix duplicating a multi-instance module instance losing its branch

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.6
1+
7.0.7

dev/META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Agrammon",
33
"description": "Simulation model for calculating ammonia and Nx/NOx emissions from agriculture.",
4-
"version": "7.0.6",
4+
"version": "7.0.7",
55
"perl": "6.*",
66
"authors": [
77
"Fritz Zaucker <fritz.zaucker@oetiker.ch>",

0 commit comments

Comments
 (0)