Skip to content

Split raw_results.columns into columns_with_internal_p_ids / columns_with_original_p_ids#131

Merged
MImmesberger merged 12 commits into
mainfrom
fix-130-remapped-ids-node
Jun 7, 2026
Merged

Split raw_results.columns into columns_with_internal_p_ids / columns_with_original_p_ids#131
MImmesberger merged 12 commits into
mainfrom
fix-130-remapped-ids-node

Conversation

@MImmesberger

@MImmesberger MImmesberger commented Jun 6, 2026

Copy link
Copy Markdown
Member

Closes #130.

🤖 Generated with Claude Code

…mapped_ids

`raw_results.columns` is computable from `processed_data` alone again
(without any `input_data`), restoring the pre-#108 pruning behavior for
callers that bypass input processing. The reverse-translation of
endogenous `p_id_*` columns introduced in #108 moves to the new node
`raw_results.columns_with_remapped_ids`, which `results.tree` consumes,
so all `results.*` outputs keep returning user-space `p_id` values.

Closes #130.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ttsim/main_args.py 85.71% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

…original_p_ids

Drop the plain `raw_results.columns` name. Both nodes now state their
id-space explicitly; "original" matches the existing internal vocabulary
(sorted_orig_p_ids, _translate_internal_to_orig_p_ids).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MImmesberger MImmesberger changed the title Move p_id reverse-translation to new node raw_results.columns_with_remapped_ids Split raw_results.columns into columns_with_internal_p_ids / columns_with_original_p_ids Jun 6, 2026
MImmesberger and others added 6 commits June 6, 2026 19:51
Build dummy processed_data from the partialled function's free arguments
and annotations, exactly like the jittability test that broke originally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the is_interface_function assertions (they test the decorator, not
the code) and collapse the three columns_with_original_p_ids behavior
tests into one — each behavior is already covered end-to-end in
test_endogenous_p_id_targets.py; the single unit test remains as a fast
failure localizer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…m functions

Port the downstream jittability test: parametrize over every mettsim
column function, build dummy processed_data from its free arguments, and
target raw_results.columns_with_internal_p_ids with a pre-built
specialized environment and no input_data.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…end-to-end

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
It runs on the JAX backend only; the coverage job uses the NumPy
backend, under which all of its cases are skipped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MImmesberger MImmesberger marked this pull request as ready for review June 6, 2026 19:58
@MImmesberger MImmesberger requested a review from hmgaudecker June 6, 2026 20:12

@hmgaudecker hmgaudecker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

Comment thread tests/interface_dag_elements/test_raw_results.py
@MImmesberger MImmesberger merged commit fceea5e into main Jun 7, 2026
13 checks passed
@MImmesberger MImmesberger deleted the fix-130-remapped-ids-node branch June 7, 2026 11:57
MImmesberger added a commit to ttsim-dev/gettsim that referenced this pull request Jun 7, 2026
…th_internal_p_ids (#1196)

See ttsim-dev/ttsim#131

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Since #108, raw_results.columns requires input_data__flat even when processed_data is supplied directly

2 participants