Skip to content

stdmedoth/lab-avancado-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Advanced Physics Lab Toolkit - IFSC/USP

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.

πŸš€ Features

  • Workflow Automation: new_exp.py script 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.
  • Professional Visualization: Generates dual-panel figures (Model Fit + Residuals) to detect systematic errors.
  • LaTeX Integration: Pre-configured ABNT/IFSC templates ready for compilation.

πŸ“‚ Repository Structure

/
β”œβ”€β”€ 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

About

Computational Physics framework for Advanced Laboratory data analysis. Features automated non-linear least squares fitting, residual analysis, and LaTeX report scaffolding.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors