Skip to main content

A photoelectron microspectroscopy/spectromicroscopy data analyis package

Project description

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.

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

pyathina-0.1.0.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

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

pyathina-0.1.0-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file pyathina-0.1.0.tar.gz.

File metadata

  • Download URL: pyathina-0.1.0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pyathina-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8de49558697294702b64af761ae66799eb14049b482569c705455a0c5178c626
MD5 e6149285342662cdee7878fff2cd8ca1
BLAKE2b-256 09ca2e00fbfff553336ec057dc3936415de9564cb4f84f94d752dd8b3d1eeefa

See more details on using hashes here.

File details

Details for the file pyathina-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyathina-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pyathina-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31ec1b88b5c640f5466e01a78e4af4845e95061cdda3605c2c4bca2913568bc9
MD5 dc3837e2acb0c809350e9f17495dd1d8
BLAKE2b-256 653b6d15165eebc5f4dd54913abacdf9e753e17b43bc2594ca42871f79a0b148

See more details on using hashes here.

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