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 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.2.4.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

xarpes-0.2.4-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xarpes-0.2.4.tar.gz
  • Upload date:
  • Size: 23.6 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.4.tar.gz
Algorithm Hash digest
SHA256 beefeeb9c6486097a961ec7cb5e1c8e64cd661e3db0f9ed7bdc9756873f7983b
MD5 0a20d8f8f62a80afe90b70ce42dfcbcb
BLAKE2b-256 5af77a1c7648d0ff8c84a42222e6df1133b665b55df2a2f447a7130ef8d42455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xarpes-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 24.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 243764efc0ede06ad56fce97c6ccb8f2f219ea9d20800c4a8da4d4983dd47ade
MD5 965b1a64a1de12334dde7b1fcc334046
BLAKE2b-256 2b809f19c0876d732449571a86ffacdebf7ae5e217b6af85c16f17cb39bdf314

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