feat: decompose intervals pipeline into chain/tuple/distribution stages#105
Open
goruha wants to merge 16 commits into
Open
feat: decompose intervals pipeline into chain/tuple/distribution stages#105goruha wants to merge 16 commits into
goruha wants to merge 16 commits into
Conversation
Introduces chain_mode, tuple_mode enums and four new pipeline functions: intervals_chain, intervals_tuple, intervals_distribution, is_valid_intervals_chain — all vectorised (no Python loops), with callable binding(chain) and chain_mode(chain) introspection, foapy.ma variants, ASV benchmarks, and 107 new tests (442 total, 0 failures). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Coverage Report for CI Build 24634835304Coverage decreased (-0.3%) to 93.596%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
* Depricate intervals and mode * Apply suggestions from code review Co-authored-by: Igor Rodionov <496956+goruha@users.noreply.github.com> * Fix docs * Fix benchmarks
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.
Summary
chain_mode(boundary/cycle) andtuple_mode(lossy/normal/redundant) enums, decomposing the monolithicintervals()into three composable stages:intervals_chain → intervals_tuple → intervals_distributionbinding(chain)andchain_mode(chain)— detect metadata from a plain ndarray chain without extra stateis_valid_intervals_chain(chain)validator (never raises),foapy.mavariants for masked-array sequences, and four ASV benchmark suitesintervals()andmodeenum unchangedTest plan
intervals_tuple(intervals_chain(X, b, cm), tm)matchesintervals()for all lossy/normal/cycle combinationsbinding(chain)andchain_mode(chain)round-trip tests against chains produced byintervals_chainfoapy.mavariants tested with partially masked sequencespre-commit(black / isort / flake8) passes clean🤖 Generated with Claude Code