This package isolates the regrouped observable blocks from the Streamlit app.
It builds the four contributions
X_L^{VV}X_{C/L}^{AA}X_TX_{T'}
from direct sector contractions of the leptonic and hadronic tensors.
Copy scripts/validate_regrouped_observable.py into your project under:
scripts/validate_regrouped_observable.py
From the root of tfgmcr:
cd C:\Users\User\Documents\tfgmcr
conda activate tfg-mcr
python scripts\validate_regrouped_observable.py --enu 1.0 --process nuIt will write figures to:
results/figures/validation/
If these validation figures look qualitatively sensible but the Streamlit app still does not, then the remaining issue is in the app integration and not in the sector contraction itself.
This script does not claim to reproduce a reference figure exactly. Its purpose is to isolate and test the regrouped observable construction outside the UI.