Skip to content

Wave A: CSV identity columns as text, drop lasso d, Actions note - #664

Merged
guijacquemet merged 4 commits into
mainfrom
claude/quirky-lovelace-9ch6tq
Nov 30, 2026
Merged

guijacquemet merged 4 commits into
mainfrom
claude/quirky-lovelace-9ch6tq

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Wave A of the MorphoBricks consolidation plan (tracker CellMigrationLab/MorphoBricks-Spec#66; plan on MorphoFeature branch claude/restart-doc, docs/restart/consolidation-plan-2026-11-30.md). Three small changes, one commit each.

Changes

Expected differences

  • A3: report.html only: the lasso panel loses its d column. No reported value changes.
  • A4: CSV identity values are now text, so numeric-looking IDs sort as text ("10" before "2"), and saved answers made for CSV tables are not reused. No reference job uses guide(). No committed golden changed, and the reference check was not run.

Tests

  • tests/test_guided_tables.py (new) covers:

    • 001 vs 01;
    • technical repeats 01 vs 1;
    • the same label 5 in three masks;
    • t/z;
    • a missing ID;
    • declared vs undeclared columns.

    It asserts on the joined feature values. All 3 tests failed before the fix and pass after.

  • test_html_scale::test_the_lasso_computes_no_effect_size_in_the_browser failed before and passes after. test_populations was updated for the removed column.

Local gate (on 57c897b)

  • pytest -n 0 tests/test_guards.py tests/test_function_guards.py tests/test_function_tools.py: 102 passed.
  • python tools/audit.py --check-against origin/main: baselines only tightened.
  • ruff check and format: clean.
  • Whole suite: 4821 passed, 2 skipped (morphobricks-preprocessing not installed), 6 xfailed.

Generated by Claude Code

workflows/_guided_tables.read_table read every CSV with a plain pd.read_csv, so
position_id "001" and "01" both became 1 and two fields merged silently. The
contract's string identity columns (the groups, the field identifiers and the
description's IDs, from metadata) and the fov_col/group_cols given to guide are
now read as text at parse time; label_id, patch_id, z/t/c, coordinates and every
other column keep their types; an empty cell stays missing (refused where an
identity needs a value), never "nan". No identity column is guessed from the
data. Parquet is not added (split out, D8).

Expected difference: CSV tables whose identifiers differ only by leading zeros
give more fields/groups; numeric identity labels read from CSV are text (ordered
as text), and answers saved for a CSV table by an earlier session are not reused
(the checksum changes). DataFrames are taken as they are. No reference job uses
guide(), so the reference check is not affected.

Regression: tests/test_guided_tables.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp98pSvu7Tsi1weJ27PR
The lasso panel of the PCA/UMAP computed a Cohen's d in JavaScript over the
unweighted average of the two variances, not the pooled variance of
statistics.cohen_d, under the same label. Owner decision (2026-11-30): remove it,
so every d in the report comes from statistics.cohen_d in Python. The panel keeps
the conditions, fields and populations of the points drawn around; the help
sentences under the maps and in docs/report/questions.md no longer promise
features "that set them apart". The Python-computed d matrices are untouched.

Expected difference: report.html only (the lasso panel's feature table and two
help sentences); no result value or text report changes.

Test: test_html_scale.test_the_lasso_computes_no_effect_size_in_the_browser;
test_populations' page test now checks the d table is gone and the condition
table remains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp98pSvu7Tsi1weJ27PR
…part)

Section 13 said Actions do not run because of the billing limit (DEC-1), but the
`tests` workflow has passed on every pull request since 2026-11-03 (checked with
the Actions runs API on 2026-11-30). The paragraph now says what runs where:
tests.yml on pull requests that change more than documentation (lint, format,
install/import, guard tests, audit --check-against), the whole suite weekly and
on demand, spec-freshness weekly. The local gate stays, since no pull request
runs the whole suite on GitHub and documentation-only ones run nothing there.
The same claim in the DEC-1/DEC-21 line is corrected. The FOV-key wording is
left for the owner's decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp98pSvu7Tsi1weJ27PR
 review)

text_identity read the caller's group_cols through column_names, using up a
generator before guide passed the same fields to Setup, which then saw no
group columns and pooled every group. It now stores the tuple it read back
into the fields. Regression test with a generator (fails before, passes
after). CHANGELOG: a DataFrame observation table with numeric identity given
with CSV tables (read as text) is refused, naming the column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp98pSvu7Tsi1weJ27PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants