Fitting examples

For an introduction, see Python tutorial > Fitting.

For an informal API documentation, see Reference > Fitting.

The following examples refer to experimental or synthetic data in directory testdata. To make these data findable, the environment variable BA_DATA_DIR must point to the testdata/ directory in your local BornAgain repository.

From the build directory, run examples as:

BA_DATA_DIR=../testdata python3 ../auto/Examples/fit/...