Skip to main content

Data Analysis for X-ray Spectroscopy

Project description

Data Analysis for X-ray Spectroscopy

Installation

You can install the development version using: 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.

Usage at the ESRF

Scripts and command line

To use the library on the computing cluster, follow the steps below.

  1. Login on the front-end: ssh -Y slurm-nice-devel
  2. Ask for resources: srun --pty bash
  3. Load the spectroscopy module: module load conda; module load spectroscopy. The command loads a Python virtual environment that contains the latest version of the library.
  4. Print the version of the library to test that everything went smoothly: python -c "import daxs; print(daxs.__version__)"

If all went well, you should be able to use the library in your scripts.

JupyterHub

You can also use the library in a Jupyter Notebook. Follow steps 1-3 from above. Next, install the kernel by running kernel-install.

After, connect to https://jupyter-slurm.esrf.fr and start a server on the Intel partition. On the right-hand side, press New. The Python environment should be in the list, as shown in the image below. Select it to create a new Jupyter Notebook.

image

Run kernel-remove to remove the kernel. Alternatively, you can use the jupyter kernelspec command to manage the kernels.

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, the best approach is to install the library in your home directory, in a virtual environment.

Documentation

The documentation can be found at https://spectroscopy.gitlab-pages.esrf.fr/daxs.

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-2022.1rc0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

daxs-2022.1rc0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file daxs-2022.1rc0.tar.gz.

File metadata

  • Download URL: daxs-2022.1rc0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for daxs-2022.1rc0.tar.gz
Algorithm Hash digest
SHA256 bc7eecc2bb088631411da8c315a363685477144e7546278aa87ccd0fe8e0d8a8
MD5 6b5081069b4d469bbf1079c5a5e7099a
BLAKE2b-256 9d2370846f549621c6402261ba8bbd00eddf91e3c01d44c84009c085301196be

See more details on using hashes here.

File details

Details for the file daxs-2022.1rc0-py3-none-any.whl.

File metadata

  • Download URL: daxs-2022.1rc0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for daxs-2022.1rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec86cb26a7fe546d4715f769259f7e56641883651f37e32a57e731a8167c9ec
MD5 ef8ddc39968890e94c2f56679b98f61e
BLAKE2b-256 889e7731766ef26b3fd98e34773bdbb4db6dc2f3d0b7b2135c67881acf8b8a3e

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