Skip to main content

BrkRaw converter hook for SORDINO-ZTE reconstruction

Project description

brkraw-sordino

SORDINO-ZTE 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-arg values 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.
  • Multi-channel data defaults to merged channels; set split_ch=true to 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 (or BRKRAW_CONFIG_HOME).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brkraw_sordino-0.1.3.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brkraw_sordino-0.1.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file brkraw_sordino-0.1.3.tar.gz.

File metadata

  • Download URL: brkraw_sordino-0.1.3.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_sordino-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9aaccb01a10ccf29444886e1aae80d349c982bf13eddde441c80ee21ccf9d43c
MD5 4c7ad43a3c199db9f139db25f7ddb0f9
BLAKE2b-256 9c864821e4d92c849b5e737c09fac91b065d1ce314690b27b2fce7859611ecd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_sordino-0.1.3.tar.gz:

Publisher: publish.yml on BrkRaw/brkraw-sordino

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brkraw_sordino-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: brkraw_sordino-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_sordino-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d864d5b68fa46b09091d7e2d3cb90157cf2d7bae55919f7b69b5bc60a9e90c
MD5 4f93da4be3b100977facfab5263bf034
BLAKE2b-256 9a25e3a700b7acce3629a2143516eddedcc51574ede48163f1964455e04bc15d

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_sordino-0.1.3-py3-none-any.whl:

Publisher: publish.yml on BrkRaw/brkraw-sordino

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page