Assets and Diagrams¶
Documentation notice
This documentation was generated with help from a large language model and has not been fully vetted by the developer. Verify critical details against the source code and current application behavior.
EWALD documentation uses generated workflow screenshots, text-based diagrams, and fallback placeholders so the site builds in any environment without blocking media capture.
Screenshots and placeholders¶
Current tutorial screenshots live in:
docs/assets/screenshots/tutorials/
Regenerate them from the repository root with:
bash
python scripts/generate_tutorial_screenshots.py
The generator opens EWALD widgets offscreen, loads example or synthetic tutorial data, and captures these documentation-ready PNG files:
ui-main-window.pngapply-corrections.pngdata-viewer-rois.pngpeak-identification.pngpeak-fitting.pngstructure-analysis.pngpole-figure.pnggiwaxs-simulation.png
Fallback screenshot placeholders live in:
docs/assets/placeholders/
Use these files only when a matching runtime capture is not available:
apply-corrections.svgcalibration-workflow.svgcorrections-workflow.svgdata-loading.svgfilm-optics.svgloading-data.svgpeak-fitting.svgpeak-identification.svgpole-figure.svgroi-tools.svgsimulation.svgstructure-analysis.svgtutorial-roi.svgui-main-window.svg
Refreshing captures¶
- Run the screenshot generator from the active EWALD environment.
- Review each PNG for clipping, blank content, and stale UI labels.
- Keep short, workflow-oriented filenames.
- Update Markdown links only when a capture is added, removed, or renamed.
If replacements are not yet available, leave placeholders in place and mark the status as Planned or Experimental in nearby documentation where behavior is incomplete.
Diagram support¶
This site uses the MkDocs Mermaid plugin (mkdocs-mermaid2-plugin) and the project
supports Mermaid blocks directly in Markdown.
EWALD workflow¶
mermaid
flowchart LR
Start[Open EWALD] --> Data[Load data]
Data --> Calib[Apply image corrections]
Calib --> ROI[Create / edit ROI]
ROI --> Peaks[Peak Identification]
Peaks --> Fit[Peak Fitting]
Fit --> Struct[Structure Analysis]
Struct --> Export[Export outputs]
Source: docs/assets/diagrams/ewald-workflow.mmd
ROI to Peak Fit to Structure Analysis data flow¶
mermaid
flowchart TD
ROI[ROI geometry] --> Peaks[Peak Identification]
Peaks --> Integration[Integrations: qxy / qz / chi]
Integration --> Fit[Peak Fit + fit metrics]
Fit --> Struct[Structure Analysis import]
Struct --> Candidates[Candidate ranking + CIF generation]
Source: docs/assets/diagrams/roi-to-structure-flow.mmd
Simulation geometry¶
mermaid
flowchart LR
Beam[Incident beam] --> Sample[Sample]
Sample --> Lattice[Crystal orientation]
Lattice --> Detector[Detector plane]
Detector --> Schematic[Pattern + Ewald modes]
Presets[Presets / theta sweep / sphere sweep] --> Schematic
Source: docs/assets/diagrams/simulation-geometry.mmd
Pole figure workflow¶
mermaid
flowchart TD
ROI[ROI selected]
ROI --> Params[Assign hkl + background]
Params --> Generate[Pole figure generate]
Generate --> Export[CSV / PNG export]
Export --> Metadata[Stored on ROI record]
Metadata --> Stale[ROI edit marks stale when geometry changes]
Source: docs/assets/diagrams/pole-figure-workflow.mmd
Calibration workflow¶
mermaid
flowchart TD
Raw[Load TIFF]
Raw --> Parse[Metadata and orientation]
Parse --> PyFAI[Launch pyFAI calibration]
PyFAI --> Poni[Save/select .poni]
Poni --> Confirm[Confirm correction state]
Confirm --> Continue[Enable downstream analyses]
Source: docs/assets/diagrams/calibration-workflow.mmd
Why placeholders are useful¶
- Keep CI and docs build reproducible before large UI captures are produced.
- Prevent broken links when UI screenshots are being refreshed.
- Track missing media in one section and keep workflow pages easier to read.