Skip to main content

Extraction from angle resolved photoemission spectra

Project description

xARPES

Repository for the code xARPES – extraction from angle resolved photoemission spectra.

This preliminary release can only be used to fit a Fermi edge. The complete functionality will be made available soon.

Installation

xARPES can be installed with pip:

python3 -m pip install xarpes

Or with conda:

conda install conda-forge::xarpes

More detailed instructions for installing the development version, tested for recent Ubuntu and Debian GNU/Linux, are provided below.

pip

It is highly recommended to set up a pristine Python virtual environment. First, the venv module might have to be installed:

sudo apt install python3-venv

Afterwards, one can activate a virtual environment named <my_venv> using:

python3 -m venv <my_venv>

It has to be activated whenever installing/running xARPES:

source <my_venv>/bin/activate

It is recommended to upgrade pip to the latest version:

python3 -m pip install --upgrade pip

Finally, the installation can be performed:

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

conda

The user is assumed to be in a pristine virtual environment provided by conda. First, download the required version for your operating system from https://docs.anaconda.com/free/miniconda/. For example:

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

Start the installation:

bash Miniconda3-latest-Linux-x86_64.sh

Then scroll down the license agreement and answer yes to the following question:

Do you accept the license terms? [yes|no]

Also specify your installation location.

It is convenient to also answer yes to the following, which will append new lines to your ~/.bashrc:

You can undo this by running `conda init --reverse $SHELL`? [yes|no]

A conda base environment is then activated with source ~/.bashrc or by starting a new terminal session.

Alternatively, you can answer no to the above question and activate conda whenever you need it:

eval "$(<your_path>/miniconda3/bin/conda shell.<your_shell> hook)"

Next, we install conda-build for developing xARPES (answer y to questions):

conda install conda-build

Finally, the following steps are executed for the installation – the <my_env> environment will have to be launched whenever running xARPES:

git clone git@github.com:xARPES/xARPES.git
cd xARPES
conda create -n <my_env> -c defaults -c conda-forge --file requirements.txt
conda activate <my_env>
conda develop .

Answer y to questions.

Examples

Afer installation of xARPES, the examples/ folder can be downloaded to the current directory with

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

Execution

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

jupyter lab

License

Copyright (C) 2024 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 2, 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.2.1.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

xarpes-0.2.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarpes-0.2.1.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for xarpes-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f305adfba1617513935d7480afd5382912be3f37f057fa729baf07ceb4b0ff49
MD5 0b2621a5852b174a8d6f0d63567759aa
BLAKE2b-256 e4c618578729dc6f823aefb5680330b3c6d487ca337a880b2bb6d5a063a168e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarpes-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for xarpes-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 718794445b1adf89d31af562bc9c66102412a691b6e3fb761efabe2e8d6f8f2d
MD5 9e1105847cfd9afcecedf059a6c88039
BLAKE2b-256 24832d12605244893617da96172d11176a9ed742b296dbdc1cdd78dc01154ff6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page