This will be a collection of tools that fill in the gap between the Sunny.jl calculator and the fitting of models to neutron scattering data. Currently contains simples tools for calculating binned intensities, including convolution across inverse spatial dimensions in momentum space.
Version 0.1.0 is a compatibility baseline release intended to provide a stable, retrievable package version for existing scripts.
The next planned development line will focus the public API around
intensities_binned, dimensional binning/intensity types, and direct use of
Sunny spin-wave objects.
Time-of-flight calculations now include a LatinHyperCube calculation spec for
bin integration with configurable Q and E sampling counts:
spec = LatinHyperCube(binning, ekernel; nqpoints=8, nepoints=2)
calc = calculate_intensities(model, spec)Behavior:
- Q sampling uses a Latin hypercube design with
nqpointssamples per q-bin. - E sampling uses
nepointsuniformly spaced points per energy bin, centered on the bin center and spanning the bin width. - Broadening energies are sorted before calling Sunny, then mapped back to the requested bins for accumulation.
Notes:
nqpointsis required.nepointsdefaults to1.
This repository is configured to use Julia's standard registration/release flow:
- Bump
versioninProject.tomland merge to the default branch. - Comment
@JuliaRegistrator registeron the commit (or PR) to trigger Registrator. - After the General registry PR is merged, TagBot creates the git tag/release.
Configured workflows:
.github/workflows/TagBot.yml.github/workflows/CompatHelper.yml
Required GitHub secrets:
GITHUB_TOKEN(provided automatically by GitHub Actions)- One SSH private key usable by automation workflows:
- preferred:
TAGBOT_SSH_KEY(TagBot) andCOMPATHELPER_PRIV_KEY(CompatHelper) - fallback:
DOCUMENTER_KEY(used by both workflows if dedicated keys are absent)
- preferred:
Notes:
- CompatHelper opens dependency-compatibility PRs on a daily schedule.
- TagBot listens for
JuliaTagBotcomments and can also be run manually via workflow dispatch.