Skip to main content

Data Analysis for X-ray Spectroscopy

Project description

Data Analysis for X-ray Spectroscopy

Usage at the ESRF

In scripts

If you want to use the library in scripts you execute on the ESRF computing cluster, follow the steps below.

  1. Use a terminal to log in on one of the computing cluster front ends: ssh -Y account@cluster-access. The account can be your personal SMIS account or the user experiment number. Enter the associated password when prompted.
  2. Ask for resources: srun --x11 --pty bash -l. This will give you an interactive shell. In addition, you can add --time=hh:mm:ss to specify the maximum time the resources will be available; by default, it will be 1 hour.
  3. Load the spectroscopy environment module: module load spectroscopy. The command loads an environment that contains the latest stable version of daxs.
  4. Print the version of the library to test that everything went smoothly: python -c "import daxs; print(daxs.__version__)".

If all goes well with the previous command and you don't get an error, you should be able to use the library in your scripts.

In Jupyter notebooks

You can also use the library in Jupyter notebooks.

  1. Connect to https://jupyter-slurm.esrf.fr.
  2. Select the Spectroscopy (latest) in the Jupyter environment drop-down menu.
  3. Change the Job duration in case you need to run your notebook for a longer time, than the default 1 hour.
  4. Press Start at the bottom of the page.

image{width=35%}

You can find more information about Jupyter at ESRF here.

While this simplifies the usage, you will not be able to add Python packages to the virtual environment. If you want to use additional packages not present in the environment, either open an issue here or install the library in your home directory, in a virtual environment (see below).

Local installation

The latest stable version of the library can be installed using:

pip install daxs

The development version can be installed using:

pip install [--ignore-installed] pip install git+https://gitlab.esrf.fr/spectroscopy/daxs.git

The --ignore-installed argument is required to upgrade an existing installation.

Installing the library in a virtual environment is best to avoid messing up other Python packages. See the official documentation on how to create and use virtual environments.

Documentation

The documentation can be found at https://daxs.readthedocs.io.

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

daxs-2025.2.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

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

daxs-2025.2-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file daxs-2025.2.tar.gz.

File metadata

  • Download URL: daxs-2025.2.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for daxs-2025.2.tar.gz
Algorithm Hash digest
SHA256 5110bba6f98a95aecda08a1f12d968be71310fe5915eebe537305c30f382ea8c
MD5 6eba05807ff22e0809736ac01050f051
BLAKE2b-256 a90cffd33df657522501688d4c5688bd33e5ce8d22e3448b072028064664237e

See more details on using hashes here.

File details

Details for the file daxs-2025.2-py3-none-any.whl.

File metadata

  • Download URL: daxs-2025.2-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for daxs-2025.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3def403c57baa436925f99323457c1f00f12b1247aa8d8d0a38a2bcf487113a
MD5 4e5830150545db25e3d52023fba9e026
BLAKE2b-256 ec200e6943d469fe98cb7b6fb8fbaa4025d2f2863cf315b4b9217f5920a332c7

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