brkraw-sordino
SORDINO reconstruction hook for BrkRaw.
Install
pip install -e .
Hook install
brkraw hook install brkraw-sordino
This installs the hook rule from the package manifest (brkraw_hook.yaml).
Usage
Once installed, brkraw applies the hook automatically when a dataset matches the rule.
Basic conversion:
brkraw convert /path/to/study --scan-id 3 --reco-id 1
The hook behaves the same whether invoked via the CLI or via the Python API (the same hook entrypoint and arguments are used).
To explicitly pass hook options (or override defaults), use --hook-arg / --hook-args-yaml below.
Hook options
Hook arguments can be passed via brkraw convert using --hook-arg with the
entrypoint name (sordino):
brkraw convert /path/to/study -s 3 -r 1 \
--hook-arg sordino:ext_factors=1.2 \
--hook-arg sordino:offset=2 \
--hook-arg sordino:split_ch=false
Pass hook options via YAML (--hook-args-yaml)
BrkRaw can also load hook arguments from YAML. Generate a template like this:
brkraw hook preset sordino -o hook_args.yaml
Edit the generated YAML, then pass it to brkraw convert (repeatable):
brkraw convert /path/to/study -s 3 -r 1 --hook-args-yaml hook_args.yaml
Example:
hooks:
sordino:
ext_factors: 1.2
offset: 2
split_ch: false
# as_complex: true # optional, return (real, imag)
# cache_dir: ~/.brkraw/cache/sordino # optional (add manually if needed)
Notes:
- CLI
--hook-argvalues override YAML. - YAML supports both
{hooks: {sordino: {...}}}and{sordino: {...}}shapes. - You can also set
BRKRAW_CONVERT_HOOK_ARGS_YAML(comma-separated paths).
Supported keys:
ext_factors: scalar or 3-item sequence (default: 1.0)ignore_samples: int (default: 1)offset: int (default: 0)num_frames: int or null (default: None)correct_spoketiming: bool (default: false)correct_ramptime: bool (default: true)offreso_ch: int or null (default: None)offreso_freq: float (default: 0.0)mem_limit: float (default: 0.5)clear_cache: bool (default: true)split_ch: bool (default: false, merge channels)as_complex: bool (default: false, return complex as (real, imag))cache_dir: string path (default: ~/.brkraw/cache/sordino)
Notes
- The hook reconstructs data using an adjoint NUFFT and returns magnitude images by default.
- Converted NIfTI outputs apply slope/intercept scaling for uint16 storage.
ext_factorsscales the affine around the FOV center during conversion.- Multi-channel data defaults to merged channels; set
split_ch=trueto keep channels split. - When
split_ch=false, magnitude uses RSS while complex uses coherent sum. - Orientation is normalized when the first 3D axes are spatial; see
notebooks/orientation.ipynb. - Cache files live under
~/.brkraw/cache/sordino(orBRKRAW_CONFIG_HOME) and are cleared whenclear_cache=true.
Metadata
Release files for brkraw-sordino 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brkraw_sordino-0.2.4.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brkraw_sordino-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.3 kB
Release files / brkraw_sordino-0.2.4.tar.gz
| Download URL | brkraw_sordino-0.2.4.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7c0023fab4ef3106d79f65c46670f72fe6b00068d44b0f84be3f79f795bb02d
|
|
BLAKE2b-256 checksum How to use checksums |
a450a3c813be8327a47ec16cf6550f6d985a9553a7db241db4989a5828df5e22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 31, 2026.
Transparency logRelease files / brkraw_sordino-0.2.4-py3-none-any.whl
| Download URL | brkraw_sordino-0.2.4-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc06e75daf5d0e04ec264ea7189ae28a01c0eac2c60a070090324ac3d9c4bd39
|
|
BLAKE2b-256 checksum How to use checksums |
9d0628a3000f3966fc913031011b2ce28ff5e5e99c001697a94f9632723f0d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 31, 2026.
Transparency log