Skip to main content

Extraction from angle resolved photoemission spectra

Project description

xARPES

xARPES

Repository for the code xARPES – extraction of the self-energy and Eliashberg function from angle-resolved photoemission spectroscopy. The documentation can be found on Read the Docs, while the code is maintained on GitHub. Instructions for installing the code and downloading the code are found below. An extensive description of the functionalities and examples is found at the arXiv preprint.

Warning

This project is currently undergoing beta testing. Some of the functionalities are in the process of being implemented. If you encounter any bugs, you can open an issue.

Contributing

Contributions to the code are most welcome. xARPES is intended to co-develop alongside the increasing complexity of experimental ARPES data sets. Contributions can be made by forking the code and creating a pull request. Importing of file formats from different beamlines is particularly encouraged.

Installation

xARPES can be installed in several ways depending on your workflow:

  • via a graphical package manager (Anaconda Navigator, VS Code, PyCharm, Spyder, JupyterLab)
  • via conda-forge, out-of-the-box or editable installation, sourcing the conda-forge package.
  • via Pip, out-of-the-box or editable installation, sourcing the PyPI package.

Graphical package manager installation

Most IDEs and scientific Python distributions include a GUI-based package manager.
These typically install from conda-forge (for conda environments) or PyPI (for venv/system Python).

Anaconda Navigator

  1. Open Anaconda Navigator
  2. Select or create an environment
  3. Set the package channel to conda-forge
  4. Search for “xarpes”
  5. Click Install

This installs the latest stable release from conda-forge.

PyCharm, VS Code, Spyder, or JupyterLab

These IDEs install from the active environment’s package source:

  • conda environment → installs from conda-forge
  • venv/system Python → installs from PyPI

Installation steps (generic)

  1. Open your IDE
  2. Select or create a Python environment
  3. Open the environment/package manager panel
  4. Search for “xarpes”
  5. Click Install

Conda Forge installation

Install xARPES inside a conda environment, either out of the box or as an editable.

Setting up a conda environment

Download and install Miniconda (see the Miniconda installation page).

Example for Linux:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh  
bash Miniconda3-latest-Linux-x86_64.sh

Create and activate an environment:

conda create -n <my_env> -c defaults -c conda-forge  
conda activate <my_env>

Installing xARPES

Option A — User installation (from conda-forge)

conda install conda-forge::xarpes

Option B — Developer installation (GitHub, editable)

git clone git@github.com:xARPES/xARPES.git  
cd xARPES  
pip install -e .

Pip installation

Install xARPES using pip, either out of the box or as an editable.

Setting up a virtual environment

Install venv if necessary:

sudo apt install python3-venv

Create and activate a virtual environment:

python3 -m venv <my_venv>  
source <my_venv>/bin/activate

Upgrade pip:

python3 -m pip install --upgrade pip

Installing xARPES

Option A — User installation (PyPI)

python3 -m pip install xarpes

Option B — Developer installation (GitHub, editable)

git clone git@github.com:xARPES/xARPES.git  
cd xARPES  
python3 -m pip install -e .

Examples

After installation of xARPES, the examples/ folder can be downloaded to the current directory:

xarpes_download_examples

Equivalently:

python3 -c "import xarpes; xarpes.download_examples()"

Execution

It is recommended to use JupyterLab to analyse data. JupyterLab is launched using:

jupyter lab

Citation

If you have used xARPES for your research, please cite the following preprint:
arXiv preprint 2508.13845.

License

Copyright (C) 2025 xARPES Developers

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

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

xarpes-0.3.0.tar.gz (965.2 kB view details)

Uploaded Source

Built Distribution

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

xarpes-0.3.0-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file xarpes-0.3.0.tar.gz.

File metadata

  • Download URL: xarpes-0.3.0.tar.gz
  • Upload date:
  • Size: 965.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for xarpes-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c32d3a885164171b6c9fbf81fa23f7328746cc3a614a80c689d7458cbe1c5a97
MD5 8c065e273ff0cc7259a001290b45ec06
BLAKE2b-256 d8f1fcb7e48f996cb7ff93d3a48c8d0eb71fcc6cb6716e6fea8d67b5ce143db1

See more details on using hashes here.

File details

Details for the file xarpes-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: xarpes-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for xarpes-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b461c91ab61d95c94e041a6df6ae60609fd0d8ed85c4a39f83ea457f3cb11ec
MD5 5df5838e0a761673688e32e409d29954
BLAKE2b-256 280180d1c5cc0c7c6f25f6bc940b5013e252d60f6d42cd8071f99929afb471b1

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