DXASCalc Web calculates spectrometer properties for Dispersive X-ray Absorption Spectroscopy (DXAS), with a modern UI style inspired by EasyXASCalc.
- Added a browser-based app using Streamlit.
- Added a clean card-based light theme (muted purple/blue accents, gradient header, scientific dashboard layout).
- Preserved core Bragg and Laue optics formulas in a standalone module for app use.
- Added Render deployment config.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run web_app.pyThen open http://localhost:8501.
- Push this repository to GitHub.
- In Render, create a Blueprint and point it to this repo.
- Render will detect
render.yamland provision the web service. - After deploy completes, open the generated
.onrender.comURL.
- Environment: Python
- Build command:
pip install -r requirements.txt - Start command:
streamlit run web_app.py --server.port $PORT --server.address 0.0.0.0
The web app currently includes the core geometry and energy spread calculations (Bragg/Laue) from this repository's original Python workflow. The notebook-only interactive widgets and external diffraction-pattern pipeline are intentionally not required by the deployed web runtime.
Author: Juanjuan Huang & George Sterbinsky
Copyright © 2024, UChicago Argonne, LLC