Skip to content

Quick-fix batch: 25 issues fixed, #640 in part (input validation, notebooks, data scripts, simulation harness) - #647

Merged
guijacquemet merged 26 commits into
mainfrom
claude/quick-fixes
Nov 25, 2026
Merged

guijacquemet merged 26 commits into
mainfrom
claude/quick-fixes

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

The quick-fix batch from the 24 Nov 2026 triage, as one PR (owner rule, 24 Nov 2026: quick fixes go in one large PR). Base: main at 60874f9 (after #645). Each fixed issue has one commit whose title starts with its number, a regression test that fails on 60874f9, and a CHANGELOG entry under "Unreleased / Fixed".

Fixed (closed by this PR)

Closes #578
Closes #418
Closes #544
Closes #538
Closes #528
Closes #491
Closes #495
Closes #485
Closes #532
Closes #551
Closes #581
Closes #430
Closes #448
Closes #449
Closes #547
Closes #591
Closes #583
Closes #577
Closes #576
Closes #574
Closes #569
Closes #520
Closes #524
Closes #519
Closes #514

Issue What changed Failed on main
#578 Glossary "Sign-flip test": paired permutation test on the mean of the per-repeat differences, magnitudes kept, exact up to 16 repeats, Monte Carlo above. glossary.py is the source; docs/common/glossary.md is re-rendered from it. Only the wording the issue asks for; the test itself is unchanged. the entry said "the exact test on the signs"
#418 robust_sd(1-D sample of one value, "geometry") returns 0. IndexError
#544 _areas.area_problem refuses areas whose total overflows a float. The estimator reports not_applicable with the reason, and the benchmark refuses the dataset. available(inf) and a STOP; the benchmark accepted [1e308]*4
#538 Stage coordinates: a value too large for a float is refused as not finite; an integer beyond 2**53 that a float would round is refused (stage_matrix, check_xy). Docs row updated. bare OverflowError; 2**53 and 2**53+1 became the same position without any error
#528 repeat_effect refuses a level outside (0, 1) and infinite contrasts (missing values still give no interval). accepted level 0, 1, -0.5, NaN, True and "0.95", and inf contrasts
#491 whole_table_tests requires permutations >= 1 (an integer) and a valid seed. permutations=0 gave p_shuffle = 1.0
#495 ColumnWeights refuses bool and str weights; BlockWeights refuses a non-bool inertia_radius and block names that are not text. True became weight 1.0; "False" turned the radius on
#485 attach_feature_tables refuses complex columns before any float cast. accepted them (imaginary part dropped, so an inf was unseen and a varying column read as constant)
#532 The descriptor-resample helpers refuse empty input, k=0, no resamples and invalid positions. Their caller already guarded these cases, so no result changes. ZeroDivisionError / unchecked
#551 document compares Setups with DataFrame.equals for the contrast table. ValueError (truth value of a DataFrame) on the same Setup
#581 FrozenDict / FrozenList freeze their contents when built directly. the caller's inner list stayed mutable in a snapshot
#430 plan_objects_to_average refuses sample keys that hold both control and other cells, and names them. planned 107 cells instead of 1 without an error
#448 The guided session asks again for duplicate or empty treatment keys, and when a fallback key is taken. {"KD": "drugB"}: drugA dropped without warning
#449 Detection-adjusted bound lines read rows by column name. AttributeError for the group column "plate id"
#547 as_row / records_to_frame export outcome_id.<name>. no config id after export
#591 Benchmark Colab notebook: the token goes through GIT_ASKPASS and the clone's environment, not the URL. The remote URL is checked, and a failed clone raises with git's message (token masked). the token was in the clone command (and so in .git/config and in the error)
#583 reference.py checks job kinds and names (one plain word, not . or ..), refuses duplicates, and run_job refuses a target outside OUT before rmtree. ../.. victim accepted; OUT/../victim__x was removed
#577 Lab converters hash the archive in chunks (hashlib.file_digest). Path.read_bytes() of the whole archive
#576 convert_tools.whole_numbers: repeats ≥ 1, track IDs and counts ≥ 0, finite and whole, otherwise the converter stops and names the source rows. All stored tables satisfy this. 1.8 became 1 and 5.9 became 5 without an error
#574 Glioma card: Unique_ID and File_name are marked as not checked by convert.py (it never reads them; their format is not guessed). experiment_nb is still checked. the card claimed they were checked
#569 jcs_effect_fovs.bands_overlap: overlap now requires the two bands to intersect (endpoints included), whichever is higher. The committed pairs CSV is unchanged (400/400 rows agree). a band entirely below the other counted as overlapping
#520 colab.run raises when P0 fails, before any other module runs. P0 failure ignored; P1-P5 ran
#524 semi_synthetic refuses repeats with fewer than 2 fields, a shift of constant values, non-finite or mismatched input; it redraws directions whose two rows cancel. Draws that do not cancel are unchanged. no treated field, or a zero shift, without an error
#519 P3 exact sign-flip tests refuse more than 16 repeats (MAX_EXACT_REPEATS). 2**n sign assignments enumerated with no bound
#514 fixed_block.check_weights (finite, at least 2 non-zero, sum 0) is enforced in regime, graph_estimable, Layout.contrast, fit_model and contrast. {"A": 1.0} accepted and answered two different questions

Partly fixed (left open)

  • Workflows example notebook still pairs biological repeats by the folder label (pair_cols=("biological_repeat",)) #640 (commit #640 …): the example notebook pairs the positive control by repeat_group and refuses a FOV table without it. I ran report on the bundled idr0028 example with this Setup: the positive control was assessed, with pair_cols=('repeat_group',). The notebook's default analysis groups (dataset.groups, condition, biological_repeat) are not changed. The workflows already read each folder label as its repeat group, and changing the groups affects optimise, benchmark and the live cells, which I could not run end to end here. MorphoFeature can re-vendor cell 12 once this merges.

Skipped

Verification (run locally on this branch, Python 3.11)

  • python -m ruff check src tests data: passed; python -m ruff format --check src tests data: 536 files already formatted
  • import check (morphocoverage, .workflows, .retrospective): passed
  • 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
  • Focused tests (the 21 touched test files): 536 passed, 6 xfailed
  • Whole suite pytest -n 4 -m 'not network' on be5ed93: 4779 passed, 2 skipped, 6 xfailed (11 min 36 s). The 2 skips are the suite's own conditional skips.
  • Fail-before: the branch's new tests, run against 60874f9's source: every issue's regression test fails there (61 failing test cases across 33 test functions). One preservation test, test_nullable_real_columns_are_still_read_485, passes on both, as intended.
  • Not run: the network tests (the converters' rebuild from the Zenodo sources, 190-381 MB). The Reject fractional repeat IDs and count measurements before integer coercion in lab converters #576/Stream large archive checksums in lab source conversion instead of allocating whole ZIP #577 converter changes were not checked against the downloaded sources; the stored tables' values satisfy the new bounds.

Generated by Claude Code

…t up to 16 repeats, Monte Carlo above

docs/common/glossary.md is re-rendered from glossary.py (its source).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…, not an IndexError

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…the benchmark alike

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…nite, integers beyond 2**53 as inexact

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…peat contrasts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…raws) and invalid seeds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…nertia_radius and non-text block names

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…invalid positions explicitly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…d of DataFrame truth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… so freeze may trust them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…ted cells

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… instead of overwriting a condition

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…itertuples attributes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…_id.<name>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… URL, commands, remote and errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… and any target outside OUT before removing it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…ding it whole

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… IDs, track IDs and counts before integer conversion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…group, refuse without it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…ert.py, as it never reads them

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… of constant values; redraw cancelling directions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
… enumerating 2**n in memory

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
@guijacquemet
guijacquemet marked this pull request as ready for review November 25, 2026 02:18
@guijacquemet
guijacquemet merged commit 6d9ee55 into main Nov 25, 2026
2 checks passed
@guijacquemet
guijacquemet deleted the claude/quick-fixes branch November 25, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment