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 installation can be divided into graphical package manager instructions, and command-line instructions for either conda or pip. With command-line instructions, an editable installation of xARPES can be created; on Windows, we strongly recommend Windows Powershell to do so. Here is a summary for the three options:

  • 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 — Out-of-the-box installation (from conda-forge)

conda install conda-forge::xarpes

Option B — Editable installation (GitHub)

First, clone the repository:

git clone git@github.com:xARPES/xARPES.git  
cd xARPES

Then perform editable installation (this mixes conda and pip):

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 — Out-of-the-box installation (PyPI)

python3 -m pip install xarpes

Option B — Editable installation (GitHub)

First, clone the repository:

git clone git@github.com:xARPES/xARPES.git  
cd xARPES

Then perform editable installation:

pip install -e .

Examples

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

python -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.2.tar.gz (966.4 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.2-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xarpes-0.3.2.tar.gz
Algorithm Hash digest
SHA256 22f160aeb2112640932fb5c682b46e11cc97ef13ffa62884e1f81c812a4a6448
MD5 b79193a365c0f6c8c8264b37e021714a
BLAKE2b-256 e61797d76bbf64cbdc07487fe4c21d1bfe3eb34f1e9eeb58243707cd97ef285e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xarpes-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5545f337477cd7973637c6fdf886822500ea7b364720d1f4839fd818e3958a95
MD5 2f8010796490125aa93d81a8835b3e21
BLAKE2b-256 87fdefa096371ce153a6686bb5113dd1e30b51539b591401ae8c56451bd19e76

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