# 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](https://docs.astral.sh/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](https://arpes.readthedocs.io/en/latest/) 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:
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "arpes-lite",
"maintainer": "Jacob Gobbo",
"docs_url": null,
"requires_python": ">=3.13",
"maintainer_email": "Jacob Gobbo <gobbo.jacob@gmail.com>",
"keywords": "python, arpes, data analysis",
"author": "Conrad Stansbury, Jacob Gobbo",
"author_email": "Conrad Stansbury <chstan@berkeley.edu>, Jacob Gobbo <gobbo.jacob@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/07/d1/7cab8c0adb993d44a7ffa4e6a8512b016a7ac511cff481e30368ce0f6d55/arpes_lite-1.0.1.tar.gz",
"platform": null,
"description": "# ARPES-Lite\n\nARPES-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.\n\nThe 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.\n\nBecause 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.\n\n## Installation\n\nArpes-lite is most easily installed with pip: `pip install arpes-lite`.\n\nNote that the package is still imported with `import arpes` as with pyarpes.\n\nFor an editable installation, I recommend installing [uv](https://docs.astral.sh/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.\n\n## Usage\n\nThe [PyARPES docs](https://arpes.readthedocs.io/en/latest/) 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.\n\nTo 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.\n\nData loading can be done the same as in pyarpes with `load_data` or more easily with `load_folder`.\n\nHere's an example of the code I use to load all of the data from an experiment:\n```python\ncorrected: list[xr.Dataset] = [\n fix_fermi_edge(data)\n for data in load_folder(data_root, location=\"BL7\", pattern=\"*.h5\")\n]\nfor i, data in enumerate(corrected):\n print(f\"{i}: {data.attrs[\"comment\"]}\")\n```\nThis 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.",
"bugtrack_url": null,
"license": null,
"summary": "Modular data analysis code for angle resolved photoemission spectroscopy (ARPES)",
"version": "1.0.1",
"project_urls": {
"Documentation": "https://arpes.readthedocs.io/",
"Repository": "https://github.com/jgobbo/arpes-lite"
},
"split_keywords": [
"python",
" arpes",
" data analysis"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7e7ffe8054cbbe4aff08df99fb6780cf5a668aa8a9c3d5fa6516b7396556befa",
"md5": "6e7a64879aad8aa1d769cfd1b14f5009",
"sha256": "57f859bd323046b180bb72842f3d71beca525830d8ea0abe3517835b08f2563d"
},
"downloads": -1,
"filename": "arpes_lite-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6e7a64879aad8aa1d769cfd1b14f5009",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.13",
"size": 7732921,
"upload_time": "2025-08-12T22:52:44",
"upload_time_iso_8601": "2025-08-12T22:52:44.588716Z",
"url": "https://files.pythonhosted.org/packages/7e/7f/fe8054cbbe4aff08df99fb6780cf5a668aa8a9c3d5fa6516b7396556befa/arpes_lite-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "07d17cab8c0adb993d44a7ffa4e6a8512b016a7ac511cff481e30368ce0f6d55",
"md5": "9e4fa4331c618e7a5eb290ad677e7492",
"sha256": "d90e6b776788792a2212ccb5c755f89f5907b4614e399329575710a1f56d85aa"
},
"downloads": -1,
"filename": "arpes_lite-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "9e4fa4331c618e7a5eb290ad677e7492",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.13",
"size": 7657619,
"upload_time": "2025-08-12T22:52:46",
"upload_time_iso_8601": "2025-08-12T22:52:46.527908Z",
"url": "https://files.pythonhosted.org/packages/07/d1/7cab8c0adb993d44a7ffa4e6a8512b016a7ac511cff481e30368ce0f6d55/arpes_lite-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-12 22:52:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jgobbo",
"github_project": "arpes-lite",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "arpes-lite"
}