Skip to content

DiamondLightSource/polspex

Repository files navigation

polspex

Polarised X-Ray Spectroscopy simulations and analysis using Quanty

  • By Dan Porter
  • Diamond Light Source Ltd

Installation

Installation is currently in developement, but the following procedure should work:

# Copy the repo
$ cd good/location
$ git clone https://github.com/DiamondLightSource/polspex.git
# Create python env
$ cd polspex
$ conda env create -f polspex.yml
$ conda activate polspex
# Build website
$ cd fontend
$ pnpm install
$ pnpm build
# If needed, copy dist from frontend/dist to backend/polspex/src/polspex and remove frontend folder
$ cp -r dist ../backend/polspex/src/polspex
# install polspex
$ cd ../backend
$ python -m pip install .

# Now run polspex!
$ polspex

Dev Notes

Updating dls_sw/apps/polspex

Quick and dirty method (change in the future!)

# in development directory
(polspex) $ cd frontend
(polspex) $ pnpm build
(polspex) $ cp -r dist/ /dls_sw/apps/polspex/0.1/env/lib/python3.13/site-packages/polspex/

About

Polarised X-Ray Spectroscopy simulations and analysis using Quanty

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published