| 1 |
+++ |
| 2 |
title = "Examples" |
| 3 |
weight = 900 |
| 4 |
+++ |
| 5 |
|
| 6 |
## Fitting examples |
| 7 |
|
| 8 |
For an introduction, see [Python tutorial > Fitting](/py/fit). |
| 9 |
|
| 10 |
For an informal API documentation, see [Reference > Fitting](/ref/fit). |
| 11 |
|
| 12 |
The following examples refer to experimental or synthetic data |
| 13 |
in directory {{% ref-src "testdata" %}}. |
| 14 |
To make these data findable, |
| 15 |
the environment variable `BA_DATA_DIR` must point |
| 16 |
to the `testdata/` directory in your local BornAgain repository. |
| 17 |
|
| 18 |
From the build directory, run examples as: |
| 19 |
```bash |
| 20 |
BA_DATA_DIR=../testdata python3 ../auto/Examples/fit/... |
| 21 |
``` |
| 22 |
|
| 23 |
{{% children depth="2" %}} |