pyAthina
A lightweight PyQt6 + pyqtgraph skeleton for PEEM-style image-stack workflows.
Install
pip install -r requirements.txt
Run
Any of these should work from the extracted project folder:
python -m pyAthina.main
python -m pyAthina
python run_pyAthina.py
If you cd into the pyAthina/ subfolder itself, you can also run:
python main.py
Alignment modes
- Phase correlation: translation-only drift correction with sub-pixel shift estimation.
- Image registration: ECC-based registration on the ROI, with the estimated transform applied to the full image.
- default: sub-pixel translation
- optional: rotation
- optional: scale
- optional: skew
When scale or skew is enabled, the registration model becomes affine.
Z profile improvements
- live ROI-driven z-profile updates while moving or resizing the ROI
- standalone popup plot window
- plot styling controls (grid, markers, line width)
- export z-profile as TXT (x, y columns)
- export plot as PNG
Line profile
- Click Line profile using line ROI.
- Then press and drag on the image to draw the line.
- The popup profile updates when you move the line endpoints or change stack layer with the slider.
- The profile width is controlled by Profile width (px) in the Profiles dock.
Xarray-backed import and axis metadata
The stack import layer creates an xarray.DataArray with dims (z, y, x).
No sample data or synthetic coordinate ranges are enabled by default. When file metadata is missing, pyAthina falls back to:
x: pixel index (0 .. nx-1)y: pixel index (0 .. ny-1)z: layer index (0 .. nz-1)
HDF5 metadata parsing helpers are included, but the final mapping of file metadata into domain-specific xarray attrs is intentionally left as a placeholder for user customization. Commented debug snippets remain in the codebase so synthetic data can be re-enabled temporarily when needed.
Multi-core alignment and headless cluster use
The alignment backend can now use multiple worker processes.
- In the GUI, set Worker processes to
1for the original serial path, or a larger value to use a process pool. - For headless cluster jobs, use:
python -m pyAthina.batch_align input.h5 aligned_stack.tif \
--dataset-path /root/entry/instrument/tvips/data \
--workers 8 \
--reference-index 0 \
--method image_registration
phase_correlation is also available with --method phase_correlation.
Metadata
Release files for pyathina 0.1.1
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 |
|---|---|---|---|---|
| pyathina-0.1.1.tar.gz | 39.4 kB | Without provenance | Details for pyathina-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyathina-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pyathina-0.1.1-py3-none-any.whl |
Total release size: 83.0 kB
Release files / pyathina-0.1.1.tar.gz
| Download URL | pyathina-0.1.1.tar.gz |
|---|---|
| Size | 39.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75180eb2402e7bcc695652f14a13f5151335d1d7c6c3e0ea0d5441bfbb3ac031
|
|
BLAKE2b-256 checksum How to use checksums |
27acf3eed0a9620804e73a34e768d3aac46983e9823cbc953719db445e08f45b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / pyathina-0.1.1-py3-none-any.whl
| Download URL | pyathina-0.1.1-py3-none-any.whl |
|---|---|
| Size | 43.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e741ac5d6ef6e4d8ad6f6483d5573fb60e96a8a0733e8d364f15b7f5715f2dd9
|
|
BLAKE2b-256 checksum How to use checksums |
07d4a0c594600d5fcae82042e01b777d63a6b1ebae4db2ee850a0484c9d292f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for pyathina 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.