registration1d
Linear and nonlinear registration of one-dimensional data.
Find this package useful? Please press star ★ , thank you!
registration1d aligns sets of 1D observations (e.g. biomechanical time series) in time.
It depends only on numpy, scipy and matplotlib; the registration
algorithms are implemented from their mathematical definitions, so no other
registration package needs to be installed.
Installation
pip install registration1d # from PyPI (numpy, scipy, matplotlib)
Installation (development)
git clone https://github.com/spm1d-org/registration1d.git
cd registration1d
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]" # editable install + test/notebook tools
pytest # runs tests/
Requires Python 3.10 or later. Minimal install (numpy, scipy, matplotlib only): pip install -e ..
Extras: [dev] adds pytest and the notebook tools; [notebooks] adds the
datasets and simulation packages used by two of the notebooks; [reference]
adds fdasrsf, dtw-python and scikit-fda for the tests that compare
registration1d with those implementations (skipped when they are absent).
Quick start
The recommended import convention is import registration1d as reg1d;
the short alias is used throughout the documentation and notebooks.
import registration1d as reg1d
y = [...] # 8 observations of unequal length (lists of 1D arrays)
yi = reg1d.register_linear(y, n=101).y # (8,101) linearly registered
yr, wf = reg1d.register_srsf(yi, max_iter=5) # nonlinearly registered + warps
result = reg1d.register_srsf(yi, t=np.linspace(0, 100, 101)) # explicit time grid (% stance)
result.plot(group=group) # before / after / warps
result.apply(other_variable) # same warps applied to another (8,101) variable
result.displacement_fields_t # displacement fields in % stance
Methods
| function | type | description |
|---|---|---|
register_linear |
linear | interpolate to a common number of points |
register_shift |
linear | least-squares time shift |
register_affine |
linear | least-squares time shift and stretch |
register_srsf |
nonlinear | elastic (square-root slope function) registration, dynamic programming, Karcher-mean template |
register_dtw |
nonlinear | dynamic time warping (step patterns, window, derivative DTW, DBA, warp smoothing) |
register_landmark |
nonlinear | landmark registration with monotone-cubic warps |
register_continuous |
nonlinear | Ramsay-Li penalised least-squares smooth warps |
register_sim |
nonlinear | self-modelling / shape-invariant model (amplitude + smooth warp) |
register_pairwise |
nonlinear | pairwise synchronisation (template-free) |
register_bayes |
nonlinear | Bayesian registration (posterior samples and credible bands of the warps) |
All functions return a RegistrationResult (islinear tells linear from
nonlinear); multivariate (J,Q,D) input is supported by register_srsf.
Every nonlinear method takes center= ('karcher' | 'pointwise' | 'anchor' |
'none'; see the WarpCentering notebook) and register_srsf uses a
data-adaptive elasticity penalty (lam='auto'; lam=0 reproduces fdasrsf).
Observations of different lengths can be registered in real time
without prior resampling by passing them as a list with their sampling
interval, e.g. register_srsf(ylist, t='fs=1000') (see reg1d.realtime
and the RealTimeRegistration notebook).
The package contains registration algorithms only. The example datasets
(notebooks/data/) and the permutation tests used in the demonstrations
live in notebooks/util.py, outside the package.
See ALGORITHMS.md for the provenance of each algorithm, GPL-COMPLIANCE.md
for the licensing status of all third-party code, SUMMARY.md for development
notes, TESTS.md for the test strategy, and the notebooks in notebooks/
(HTML renderings in notebooks/html/) for demonstrations; the
jiku-data-datasets notebook runs every method on all one-dimensional
datasets of the jiku-data package,
and the power_simulated_datasets notebook measures false-positive rates
and statistical power after registration on simulated data built with
power1d (pip install jiku-data power1d, or
the [notebooks] extra; jiku-data depends on PyTables, which is why these
are not part of [dev]). The package
source is in src/registration1d/; the draft software paper is in paper/.
Tests
python -m pytest tests
Contributing
Please see the spm1d.org contributing guidelines and AI policy.
License
GNU General Public License v3.0 or later. See LICENSE.txt.
Metadata
Release files for registration1d 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| registration1d-0.0.2.tar.gz | 60.9 kB | With provenance | Details for registration1d-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| registration1d-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for registration1d-0.0.2-py3-none-any.whl |
Total release size: 131.8 kB
Release files / registration1d-0.0.2.tar.gz
| Download URL | registration1d-0.0.2.tar.gz |
|---|---|
| Size | 60.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b70b604db9dd84d428abde1255404f2365676e8aad27a4ea2cc043bf5c888ea
|
|
BLAKE2b-256 checksum How to use checksums |
cf4942693156ce193eadc95096469c89e826c7463f1ebcc1a5a42f43da44bb49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / registration1d-0.0.2-py3-none-any.whl
| Download URL | registration1d-0.0.2-py3-none-any.whl |
|---|---|
| Size | 70.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33e89113bec9bfde477db77fb8570f29d8478a79272177eb05c33267d056c054
|
|
BLAKE2b-256 checksum How to use checksums |
7ba1e52af9d607dfc61d0e4d6ee4a92c7bafaf1823d81ae6fd6556e59be4f478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for registration1d 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for registration1d-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.