What problem does it solve?
This Skill documents and explains Refl1d Python model files used to describe layered samples for neutron reflectometry fitting, helping users choose, create, and modify models so they can run reliable fits and sensitivity studies.
Core Features & Use Cases
- Explains the create_fit_experiment(q, dq, data, errors) function signature and how it constructs a refl1d.experiment.Experiment from SLD and Slab definitions.
- Lists available model variants (for example cu_thf and its minimal/oxide variants), how layers are ordered, and how to set parameter ranges for thickness, SLD, and interface.
- Describes utility workflows: generating standalone fit scripts from a model+data file and creating temporary models with adjusted parameter ranges for focused fitting campaigns.
Quick Start
Use the models skill to inspect the cu_thf model, summarize its layer stack and parameter ranges, and generate a standalone fit script for the data file REFL_218281_combined_data_auto.txt.