This release is a pre-release and may not be stable for production use.
FlowReg1D
Python toolbox scaffold for fast variational 1D alignment.
Under Development
This project is still in an alpha stage. Expect rapid changes, incomplete features, and possible breaking updates between releases.
- The API may evolve as we stabilize core functionality.
- Documentation and examples are incomplete.
- Feedback and bug reports are especially valuable at this stage.
Purpose
FlowReg1D is intended to provide Python workflows for 1D signal and ERP latency
alignment using the same general software style as PyFlowReg: installable
src package layout, typed options, ERP-focused TOML configuration, examples,
Sphinx documentation, pytest coverage, CLI support, and release-ready GitHub
Actions files.
The future numerical port should use these MATLAB/C++ baselines:
variational_aligner/core/align_lines.mvariational_aligner/core/align_core.cppERP_alignment/VERPA/functionsERP/Var_Alignment.mERP_alignment/VERPA/functionsERP/CrossCorrRef.m
Requirements
Python 3.10 or newer.
python -m venv .venv
.venv\Scripts\activate
pip install -e .[test]
On Linux or macOS:
python -m venv .venv
source .venv/bin/activate
pip install -e .[test]
Quickstart
The public API is already shaped for the later solver port:
import numpy as np
from flowreg1d.core import AlignmentOptions, align_lines
signals = np.random.rand(20, 500)
reference = signals.mean(axis=0)
options = AlignmentOptions(alpha=1.0, sigma=5.0, iterations=100)
registered, displacement = align_lines(signals, reference, options=options)
In this scaffold version, align_lines raises NotImplementedError.
ERP CLI Configuration
ERP alignment configuration follows the same typed-options pattern as PyFlowReg without adding higher-level workflow orchestration:
input_file = "erp_trials.npy"
output_file = "aligned_erp_trials.npy"
[alignment_options]
alpha = 1.0
sigma = 5.0
iterations = 100
levels = 40
[erp_options]
reference_method = "mean"
iter_ref = 1
fs = 200.0
denoising = "none"
Validate a configuration with:
flowreg1d erp validate --config examples/erp_config.toml
Development
pip install -e .[test,docs]
pytest
Pre-commit hooks are included for code style and file hygiene:
pip install pre-commit
pre-commit install
pre-commit run --all-files
Citation
If you use this toolbox for your work, please cite:
P. Flotho, D. Thinnes, B. Kuhn, C. J. Roome, J. F. Vibell, and D. J. Strauss, "Fast variational alignment of non-flat 1D displacements for applications in neuroimaging," Journal of Neuroscience Methods, 353, 109076, 2021. doi: 10.1016/j.jneumeth.2021.109076
BibTeX:
@article{flotho2021fast,
author = {Flotho, Philipp and Thinnes, David and Kuhn, Bernd and Roome, Christopher J. and Vibell, Jonas F. and Strauss, Daniel J.},
title = {Fast variational alignment of non-flat 1D displacements for applications in neuroimaging},
journal = {Journal of Neuroscience Methods},
volume = {353},
pages = {109076},
year = {2021},
doi = {10.1016/j.jneumeth.2021.109076}
}
If you use it for ERP alignment, please additionally cite:
D. Thinnes, P. Flotho, F. I. Corona-Strauss, D. J. Strauss, and J. F. Vibell, "Compensation of ERP Latency Jitter Using Fast Variational 1D Displacement Estimation," TechRxiv, 2025. doi: 10.36227/techrxiv.174062901.13096882/v1
BibTeX:
@article{thinnes2025erp,
author = {Thinnes, D. and Flotho, P. and Corona-Strauss, F. I. and Strauss, D. J. and Vibell, J. F.},
title = {Compensation of ERP Latency Jitter Using Fast Variational 1D Displacement Estimation},
journal = {TechRxiv},
year = {2025},
doi = {10.36227/techrxiv.174062901.13096882/v1}
}
Metadata
Release files for flowreg1d 1.0.0a1
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 |
|---|---|---|---|---|
| flowreg1d-1.0.0a1.tar.gz | 3.6 MB | With provenance | Details for flowreg1d-1.0.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowreg1d-1.0.0a1-py3-none-any.whl | Python 3 | none | any | Details for flowreg1d-1.0.0a1-py3-none-any.whl |
Total release size: 3.6 MB
Release files / flowreg1d-1.0.0a1.tar.gz
| Download URL | flowreg1d-1.0.0a1.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11358273f5d9344400eac6f89345ba5060efd397033076cebf97d839f03fc07b
|
|
BLAKE2b-256 checksum How to use checksums |
7ee7f43ca4be49d0297185513878af52f5c64ca71026fa6d6a1f71bd04ca68f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 26, 2026.
Transparency logRelease files / flowreg1d-1.0.0a1-py3-none-any.whl
| Download URL | flowreg1d-1.0.0a1-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea925aae3f584f04a29508baefe3c8662971aa510d9ca62fccd407351f900af0
|
|
BLAKE2b-256 checksum How to use checksums |
d7bb91541c696f70940af9d274fdfb2226a24d3c2acc80e7f4290c34203a8b92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 26, 2026.
Transparency logSecurity for flowreg1d 1.0.0a1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for flowreg1d-1.0.0a1.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 May 26, 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.