Skip to main content

ARPES-Lite

ARPES-Lite is my personal fork of the original PyARPES package. I ran into some issues when first working with the package and fixing them required that I break a significant portion of the codebase.

The main improvements to pyarpes are in automation of loading and correcting data (fermi-edge correction, k-space conversion, etc.). There are also improvements and additions to QT based interactive tools.

Because of the changes made to data loading, some work is required to port endstations plugins from pyarpes. If needed, I can easily port existing endstations or add new ones.

Installation

Arpes-lite is most easily installed with pip: pip install arpes-lite.

Note that the package is still imported with import arpes as with pyarpes.

For an editable installation, I recommend installing uv, cloning the github repo, navigating to the cloned repo in your shell, and installing with uv sync. This will also install ipykernel so you can run ipython notebooks with VS Code.

Usage

The PyARPES docs are still the best place to learn how to use arpes-lite. I don't have my own docs to document all of the changes in usage, but there aren't many once you've gotten started.

To start, import common functions with from arpes.config import *. This contains data loading functions, imports the xarray_extensions, and other common functions for correcting and plotting data (fermi-edge correction, stack_plot, etc.) Having an editable arpes.config is the primary advantage of an editable installation.

Data loading can be done the same as in pyarpes with load_data or more easily with load_folder.

Here's an example of the code I use to load all of the data from an experiment:

corrected: list[xr.Dataset] = [
    fix_fermi_edge(data)
    for data in load_folder(data_root, location="BL7", pattern="*.h5")
]
for i, data in enumerate(corrected):
    print(f"{i}: {data.attrs["comment"]}")

This will load all of the data in the data_root folder with a .h5 extension and then perform automatic fermi-edge correction on each dataset. Finally it prints a "comment" attribute stored during the measurement. From there you can convert_to_kspace without having to specify your momentum coordinates. Finally, you can use export_dataset to save a .nc file with any conversions/corrections you've performed so you don't have to do them every time you analyze your data.

Metadata

Release files for arpes-lite 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arpes-lite 1.0.1
File Size Uploaded
arpes_lite-1.0.1.tar.gz 7.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for arpes-lite 1.0.1
File Interpreter ABI Platform
arpes_lite-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 MB

Release files / arpes_lite-1.0.1.tar.gz

Download URL arpes_lite-1.0.1.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d90e6b776788792a2212ccb5c755f89f5907b4614e399329575710a1f56d85aa
BLAKE2b-256 checksum
How to use checksums
07d17cab8c0adb993d44a7ffa4e6a8512b016a7ac511cff481e30368ce0f6d55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release files / arpes_lite-1.0.1-py3-none-any.whl

Download URL arpes_lite-1.0.1-py3-none-any.whl
Size 7.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
57f859bd323046b180bb72842f3d71beca525830d8ea0abe3517835b08f2563d
BLAKE2b-256 checksum
How to use checksums
7e7ffe8054cbbe4aff08df99fb6780cf5a668aa8a9c3d5fa6516b7396556befa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page