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.
- Use a terminal to log in on one of the computing cluster front ends:
ssh -Y account@cluster-access. Theaccountcan be your personal SMIS account or the user experiment number. Enter the associated password when prompted. - Ask for resources:
srun --x11 --pty bash -l. This will give you an interactive shell. In addition, you can add--time=hh:mm:ssto specify the maximum time the resources will be available; by default, it will be 1 hour. - Load the spectroscopy environment module:
module load spectroscopy. The command loads an environment that contains the latest stable version ofdaxs. - 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.
- Connect to https://jupyter-slurm.esrf.fr.
- Select the
Spectroscopy (latest)in theJupyter environmentdrop-down menu. - Change the
Job durationin case you need to run your notebook for a longer time, than the default 1 hour. - Press
Startat the bottom of the page.
{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] 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.
Metadata
Release files for daxs 2026.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| daxs-2026.3.tar.gz | 40.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| daxs-2026.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.3 kB
Release files / daxs-2026.3.tar.gz
| Download URL | daxs-2026.3.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c57153979319b02a78f57e37d82ba69592045c39f3586737acec515f6c0ddb0
|
|
BLAKE2b-256 checksum How to use checksums |
46ec2e6456a6908030c6f5d4dce51d79eee9a6fdb75fc9614cc058c067c7c710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / daxs-2026.3-py3-none-any.whl
| Download URL | daxs-2026.3-py3-none-any.whl |
|---|---|
| Size | 45.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3df17c6277cc12df20ea21bea4fdf94f01e96c47f50d3d21267e04c2c0587d3
|
|
BLAKE2b-256 checksum How to use checksums |
15723ac01d70346a7a9503d2554bcf35568aae34a63ab796ef3f137576c87fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|