+++ title = "Examples" weight = 900 +++ ## Fitting examples For an introduction, see [Python tutorial > Fitting](/py/fit). For an informal API documentation, see [Reference > Fitting](/ref/fit). The following examples refer to experimental or synthetic data in directory {{% ref-src "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: ```bash BA_DATA_DIR=../testdata python3 ../auto/Examples/fit/... ``` {{% children depth="2" %}}