Skip to content

Finish transforms - #3

Open
btbest wants to merge 10 commits into
mainfrom
finish-transforms
Open

Finish transforms#3
btbest wants to merge 10 commits into
mainfrom
finish-transforms

Conversation

@btbest

@btbest btbest commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

This branch implements the remaining features that transforms really need: clean composition, simplification and exact dimensionality validation.

It's finished and ready to merge, just leaving it off main to finish ilastik first

btbest added 10 commits August 6, 2026 16:06
And use the more clearly defined responsibilities: Now that simplification is handled in a clear place, the specific cases of Affine (scale, translation etc) can do the inverse of simplification and compose into Affine.
* Refactor construction in _ndim_by_payload and usage sites
* _source_ndim_must_eq_target_ndim is now obsolete (True just means delta=0, False means delta=None)
* Update/Implement _ndim_by_payload where now more detail can be expressed (ProjectAxis, ByDimension, Bijection, Sequence)
* No qualitative changes to validation yet, i.e. no genuine use of the new constraint information
And add IDs for ProjectAxis compose test
* In particular ProjectAxis, Bijection and Sequence
* No more overriding _validate_bound_axes: There are no special cases anymore. All constraints are expressed by _ndim_by_payload and validated by the Transform base class.
* ByDimension can now just offload validation to base Transform class, meaning also no new tests necessary.
@btbest
btbest force-pushed the finish-transforms branch from 6507ee8 to d54b511 Compare August 14, 2026 06:09
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.

1 participant