Skip to content

Typed identity in group keys, FOV tie-breaking and experiment relations (#164, #237, #541) - #612

Closed
guijacquemet wants to merge 3 commits into
mainfrom
claude/typed-condition-matching
Closed

guijacquemet wants to merge 3 commits into
mainfrom
claude/typed-condition-matching

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Draft, work in progress: one commit per issue (first commit pushed, #164).


Generated by Claude Code

group_key wrote a label JSON cannot hold through str, so a Timestamp, a date or bytes and
the text label that prints the same shared one key, and a lookup by group found the wrong
group's result. Such a label is now keyed by its type and its text. Every label JSON holds
(text, numbers, booleans, None, tuples) keeps exactly the key it had.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
…xt (#237)

The nearest-neighbour tie-break of the stage-neighbour check and the canonical field order of
the redundancy-distance shuffles sorted the FOV key as text, so fields 1 and "1" tied and
the stable sort left their order to the row order of the FOV table: which of two equidistant
fields was compared, and the seeded null draws, changed when the table was reordered. Both
now use the typed canonical order (_identity.canonical_order). Keys that print apart sort
exactly as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
…ty (#541)

experiment_relations selected each experiment's rows with np.isin(labels, list(conditions)).
A declared list mixing types (1 and "x") became the text ["1", "x"]: the rows of condition 1
were left out of the experiment and those of condition "1" put in, so a relation that held
in the experiment was missed or credited to another. The conditions of the observations and
the declared ones are now both typed keys (_identity.typed_frame), and matched as such.

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

Copy link
Copy Markdown
Contributor Author

Closing as stale (owner decision, cleanup of 14 November 2026). This draft dates from 5 November and is 46 commits behind main, which has since merged the compatibility sweep (#636). The branch claude/typed-condition-matching is kept, and the PR can be reopened and rebased at any time.


Generated by Claude Code

@guijacquemet
guijacquemet deleted the claude/typed-condition-matching branch November 14, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants