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.
- Use a terminal to log in on one of the computing cluster front ends:
ssh -Y account@slurm-nice-devel
. Theaccount
can 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 from which you can also start code editors likeSpyder
. 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. - Load the spectroscopy environment module:
module load spectroscopy
. The command loads an environment that contains the development version of thedaxs
library. - 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 environment
drop-down menu. - Change the
Job duration
in case you need to run your notebook for a longer time, than the default 1 hour. - Press
Start
at 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 on your computer
You can install the latest release of the library using:
python3 -m pip install daxs
If you want to use the latest development version, you can install it directly with:
python3 -m pip install [--ignore-installed] https://gitlab.esrf.fr/spectroscopy/daxs/-/archive/main/daxs-main.tar
The --ignore-installed
argument is required if you want to upgrade an
existing installation.
It is best if you install the library in a virtual environment 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://spectroscopy.gitlab-pages.esrf.fr/daxs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file daxs-2024.0.tar.gz
.
File metadata
- Download URL: daxs-2024.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a5cb96fc4f1db868c66bd94c5b23a13315278356d8acd364ceb476186f695e |
|
MD5 | ca6f6119748dde9ba5ae02e7b5e589d4 |
|
BLAKE2b-256 | b3ceeb8dbdbad828242151f33f3612b27a037c9e3d0f9adad7a3255d047ee666 |
File details
Details for the file daxs-2024.0-py3-none-any.whl
.
File metadata
- Download URL: daxs-2024.0-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdad114f0134a4bf49a9b9bab6954a0056b651ce11e537ac1009f40d13c4d190 |
|
MD5 | cb6c32fa7276d6826c3b8478b9f78ac9 |
|
BLAKE2b-256 | 8c92eaa1c3cc833c250514cfb863783d610b03dc74a4157d0f6c076f80c5becc |