Repository navigation
A cell overrides the setting for its row; a column the source fills waits for its file - #256
Merged
Merged
Conversation
The value of a parameter for a row is its cell; if the cell is empty or the parameter is no column, the setting of the batch; if the batch has none, the default. Before, a parameter was a setting or a column, never both, so "Make this a column" copied the setting into each cell and dropped it, and a row added later (by Follow, "Add rows from the runs", or by hand) was reduced with the default, not with the value the batch had. - Batch keeps all settings, those at columns too; the template that rows fill and a stage is opened from is the settings without the columns. An empty cell takes the setting in cells(). put changes no setting. - make_column adds an empty column and keeps the setting. make_setting sets the setting to the value that the chosen row (or every row) takes: its cell, or, for an empty cell, the setting, which then stays. values() lists the values that rows take. - earlier against outdated per row: a parameter counts as a setting for a row if it is no column or the row's cell is empty, read from the table now; no state is kept. - settings.json is a template without blanks holding every setting; a file with blanks reads the same. - create with a source leaves out the settings of the columns that the source fills, where an empty cell means a run has not arrived. This replaces the copying in Pages.create; table.with_column goes. - The command takes a template value at a column as that column's setting. - Page: the settings form has a field per parameter, a column's marked "A column: a row may give its own" and allowed unset; the grid shows an empty cell in grey as the setting, else the default; "Save settings" writes every setting. - ADR 0012 amended in place; the dropped rule is an alternative. Its context defines scope and scan itself, since ADR 0011 no longer does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty cell of a column that the source of the batch fills means that a run has not arrived. With a setting there, a row taken before its file arrived would be reduced with the file of another sample. The manager now gives a batch the parameters its source fills (Batch.fills); the batch refuses a setting at such a column and make_setting of it, and Batch.settable leaves such values out of settings taken from elsewhere: another batch at create, Load settings, "Put these settings in the form", and the template of the command. make_setting of such a column was allowed before; it is now refused. The settings form has no field for it. The field of a column in the Settings tab has Clear, so a column's setting can be removed for every kind of field. The row tab shows every value the row took, cells and settings, and marks those that changed. row_states takes own as a required argument. Docs: a flowchart of the value of a parameter for a row in batch.md, truer labels on the arrows to earlier and outdated, and the ADR 0012 alternatives in the conditional. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tting # Conflicts: # packages/essapps/src/ess/apps/batch/web/page.py
The rule that an empty cell of a column that the source fills means the row waits was enforced where settings are written: refusals in the constructor, put and the setter, settable at each entrance, and fills looked up from the registered source. The command without -s read no fills, kept a setting at transmission, reduced a waiting row with the transmission run of another sample, and left a batch the page could not show. A parameter with a default that the source fills, such as offset, was never covered. Now the rule lives where the values of a row are resolved, Batch.empty(), which cells() and so the state read: a column of fills gives nothing for an empty cell, whatever the settings or the default. A setting there is never read; the constructor drops one that the definitions hold. The fills are kept with the batch in source.json, and a step and offered() ask the batch, not the source, which names a row waits for. The table of a batch from a source keeps a column for each: put and make_setting refuse to drop one. Batch.filled, _refuse_filled, and the branch in make_column go. Page: "Put these settings in the form" takes the value the row was reduced with where its cell is empty; the button at a column's field is "Default" (op reset), as it sets the default, and works at any field; the grey value of an empty cell is shown as a cell holding it is; the notice of "Make this a column" names the default when there is no setting. Column.waits replaces Column.filled. Docs: the value flowchart asks "the source fills it?" first; the state diagram says "a value missing", and a setting applied also makes a row ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The constructor refuses a table without a column of fills, as put does, so a rows.json edited by hand cannot turn a waiting row ready with the default; a batch made without rows starts with a column per name of fills. filled() names a column that the source no longer gives and the batch keeps as filled by it, so offered() and a step say the cause instead of a KeyError. The rows offered on the page hide the batch's fills, not the registered source's. The state diagram in batch.md: incomplete means any problem of the row, also from a row with a result; an emptied cell reads earlier only if what the row then takes differs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A row added to a batch after a setting was made a column was reduced with the parameter's default, not with the value of the batch, and nothing said so. Measured: a batch made with thickness 2.0 ticked as a column; a row that Follow added later was reduced with thickness 1.0.
The cause was the rule "a parameter is a setting or a column, never both; an empty cell means the default". "Make this a column" copied the setting into each row's cell and removed the setting, so later rows had nothing to take. This replaces the rule and amends ADR 0012.
The rule
flowchart TD fills{"the source fills the column?"} fills -->|yes| own{"the cell holds a value?"} own -->|yes| cell["the cell"] own -->|no| waits["nothing: the row waits for its file"] fills -->|no| column{"a column whose cell holds a value?"} column -->|yes| cell column -->|no| setting{"the batch has a setting?"} setting -->|yes| value["the setting"] setting -->|no| default["the default of the parameter"]earlierwhen that setting changes; a row with its own cell staysdone.source.json, and its table keeps those columns.The rule is in one function,
Batch.empty();cells(), the state of a row, the page's grey value in an empty cell and the command read it.What a person sees
Choices and costs
earlier, notoutdated, if the row then takes another value. Telling the two apart would need the batch to keep where each value came from at the time of reduction.source.jsonlacks the names the source fills. The page and the command say so; there is no migration, since nothing is deployed.table.with_columnand the copying of settings into cells at "New batch" are removed.Also closed, older than this change: where a source-filled parameter has a default, a waiting row taken by hand was reduced with the default.
To check
earlier, a row with its own cell staysdoneincompleteand is not reduced🤖 Generated with Claude Code