Repository navigation
feat: stalign api and landmark alignment - #1195
Open
selmanozleyen wants to merge 17 commits into
Open
selmanozleyen wants to merge 17 commits into
selmanozleyen wants to merge 17 commits into
Conversation
timtreis
reviewed
Jun 16, 2026
timtreis
reviewed
Jun 16, 2026
timtreis
reviewed
Jun 16, 2026
| radius = int(np.ceil(float(np.max(blur_values)) * 4.0)) | ||
| denom = 2.0 * (dx * blur_values * 2.0) ** 2 | ||
|
|
||
| for x_i, y_i in zip(x, y, strict=False): |
Member
There was a problem hiding this comment.
How many points do we have? Should probably rasterize
Member
Author
There was a problem hiding this comment.
wdym? This is the function for rasterization?
timtreis
reviewed
Jun 16, 2026
timtreis
reviewed
Jun 16, 2026
timtreis
reviewed
Jun 16, 2026
timtreis
reviewed
Jun 23, 2026
timtreis
reviewed
Jun 23, 2026
This was referenced Aug 11, 2026
selmanozleyen
commented
Aug 27, 2026
selmanozleyen
force-pushed
the
feat/api-docs-restructure
branch
3 times, most recently
from
August 30, 2026 23:20
3c54e85 to
7b33737
Compare
selmanozleyen
force-pushed
the
feat/api-docs-restructure
branch
3 times, most recently
from
September 25, 2026 16:05
d594650 to
11d8760
Compare
selmanozleyen
force-pushed
the
feat/experimental-fit-core
branch
from
September 25, 2026 16:05
69dae69 to
76d69a7
Compare
selmanozleyen
force-pushed
the
feat/api-docs-restructure
branch
from
September 25, 2026 19:42
11d8760 to
e5f0d6b
Compare
selmanozleyen
force-pushed
the
feat/experimental-fit-core
branch
from
October 9, 2026 23:54
8e433f8 to
f1462a8
Compare
selmanozleyen
changed the base branch from
feat/api-docs-restructure
to
feat/enum-to-literal
October 27, 2026 16:54
…direction - landmarks from shapes elements are read in their coordinate system, the frame the fit is registered onto, not the element's intrinsic one - key_added with shapes-element landmarks is refused up front, and the refusal that suggested it now suggests table_key + key_added - the volume path's initial_affine maps the volume onto the section, the reverse of the 2D paths; the docstrings say so - transform refuses a coordinate_system the fit was not made in
spatialdata is a hard dependency, so the importorskips never skipped; jax stays optional, so its skip stays.
rasterize_points takes only sdata positionally; the alignment functions keep their reference and query positional. The jitted solver loop takes only its first argument positionally.
…e-insensitive method and direction
… share the raster fit path, trim repeated docstrings
…wn frame or has none
Most of these had a second paragraph arguing for a design decision rather than telling a reader anything: why the axes are read off the transformation instead of taken as an argument, why JAX is imported lazily, why the frame check exists rather than being applied silently, why one flag beats two spellings. The fit subclasses each restated that they are a StalignFit and listed what they inherit, which the class line already says. What a caller cannot recover from the code stays: landmark units and row-order matching, the obsm frame rule, the bilinear-vs-nearest quantisation, the mass-conserving blur, the stop-gradient on the contrast M step, the upstream velocity-axis divergence, and why not jnp.atleast_3d. lddmm also repeated _lddmm_run's loop-fusion note and kept prose between Parameters and Returns, where numpydoc does not expect it. One sentence in _api.py's module docstring had lost its grammar.
selmanozleyen
force-pushed
the
feat/experimental-fit-core
branch
from
October 27, 2026 17:22
6386896 to
6916fd5
Compare
The volume fit never passes landmarks, so the point term is zero and the value was dead; it existed only because `lddmm` required the argument. `sigmaP` is now optional there and checked only when points are given.
This branch has not been deployed
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.
Continuation of #1162