Version 0.1.0
Framework for driving neutron autonomous reflectometry experiments. The overarching goal is to use autonomous experimentation techniques to measure a 1-D reflectometry pattern,
Neutron reflectometry measurements involve measuring the reflection of neutrons from structured interfaces. Measurements involve measuring a 1-D curve,
conda env create -n autorefl --file=environment.yml
conda activate autorefl
python setup.py install
simexp -- library containing SimReflExperiment, SimReflExperimentControl, and data structures
instrument -- instrument definitions for monochromatic and polychromatic reflectometers
entropy -- library of functions for calculating entropies
datatools -- library of helper functions for simulating and fitting data
runauto_cli -- command line interface for running simulations with an arbitrary model and simulation parameters
Autonomous experiment:
python -m autorefl.runauto_cli ssblm.py --pars ssblm_tosb0.par --name both_forecast_q025 --sel 10 11 12 13 14 --eta 0.50 --meas_bkg 3e-6 3e-5 --maxtime 43.2e3 --burn 1000 --steps 500 --pop 8 --instrument MAGIK --qmax 0.25 --qstep_max 0.0024
Control experiment:
python -m autorefl.runauto_cli ssblm.py --pars ssblm_tosb0.par --name both_q025 --sel 10 11 12 13 14 --meas_bkg 3e-6 3e-5 --maxtime 200e3 --burn 2000 --steps 500 --pop 8 --instrument MAGIK --control --nctrlpts 31 --qmax 0.25 --qstep_max 0.0024
To load a simulation file later:
from autorefl.simexp import SimReflExperiment
exp = SimReflExperiment.load('<simulated experiment folder>/exp0.pickle')