High-performance automation and statistical analysis toolkit designed for the Advanced Laboratory course at the Institute of Physics of SΓ£o Carlos (IFSC/USP).
This project streamlines the scientific workflow by automating folder structures, performing rigorous non-linear least squares fitting (weighted), and generating publication-quality LaTeX reports. It eliminates manual formatting overhead, allowing a total focus on physics and data interpretation.
-
Workflow Automation:
new_exp.pyscript instantly scaffolds new experiment directories with all necessary templates. -
Robust Statistical Analysis:
- Non-linear curve fitting using
scipy.optimize.curve_fit(Weighted Least Squares). - Automatic calculation of Reduced Chi-Squared (
$\chi^2_{red}$ ) for goodness-of-fit validation. - Parameter uncertainty propagation via the Covariance Matrix.
- Non-linear curve fitting using
- Professional Visualization: Generates dual-panel figures (Model Fit + Residuals) to detect systematic errors.
- LaTeX Integration: Pre-configured ABNT/IFSC templates ready for compilation.
/
βββ new_exp.py # Automation script (Scaffolds new experiments)
βββ templates/ # Core templates
β βββ base_script.py # Python analysis engine (Fit + Residuals + Chi2)
β βββ report_template.tex # LaTeX report boilerplate
β
βββ exp01-example/ # (Generated folder structure)
β βββ analysis.py # Experiment-specific script
β βββ data.csv # Raw experimental data
β βββ fit_plot.png # Generated figure
β βββ report.tex # Final report source
β
βββ README.md