-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.py
More file actions
47 lines (37 loc) · 1.74 KB
/
welcome.py
File metadata and controls
47 lines (37 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import autofit as af
input(
"########################################\n"
"### WELCOME TO HOWTOFIT ###\n"
"########################################\n\n"
"This script runs a few checks to ensure PyAutoFit is set up correctly.\n"
""
"Once they pass, read through start_here.py (or start_here.ipynb) and then open\n"
"scripts/chapter_1_introduction/start_here.py to begin the tutorial series.\n\n"
"\n"
"########################################\n"
"### HOWTOFIT WORKING DIRECTORY ###\n"
"########################################\n\n"
"""
PyAutoFit assumes that the `HowToFit` directory is the Python working directory.
This means that, when you run a tutorial script, you should run it from the `HowToFit`
repository root as follows:
cd path/to/HowToFit (if you are not already in HowToFit).
python3 scripts/chapter_1_introduction/tutorial_1_models.py
The reasons for this are so that PyAutoFit can:
- Load configuration settings from config files in the `HowToFit/config` folder.
- Write simulated tutorial data to `HowToFit/dataset/`.
- Output the results of model fits to `HowToFit/output/`.
If you get errors relating to importing modules, loading data or writing output, it is
most likely because you are not running the script with `HowToFit` as the working
directory.
[Press Enter to continue]"""
)
input(
"########################################\n"
"### MATPLOTLIB BACKEND ###\n"
"########################################\n\n"
"""
Figures produced by the tutorials are rendered with `matplotlib`. Depending on your
system, you may need to configure the matplotlib backend.
[Press Enter to finish]"""
)