-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.py
More file actions
48 lines (38 loc) · 1.89 KB
/
welcome.py
File metadata and controls
48 lines (38 loc) · 1.89 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
48
import autogalaxy as ag
input(
"########################################\n"
"### WELCOME TO HOWTOGALAXY ###\n"
"########################################\n\n"
"This script runs a few checks to ensure PyAutoGalaxy 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/tutorial_0_visualization.py to begin the tutorial series.\n\n"
"\n"
"########################################\n"
"### HOWTOGALAXY WORKING DIRECTORY ###\n"
"########################################\n\n"
"""
PyAutoGalaxy assumes that the `HowToGalaxy` directory is the Python working directory.
This means that, when you run a tutorial script, you should run it from the `HowToGalaxy`
repository root as follows:
cd path/to/HowToGalaxy (if you are not already in HowToGalaxy).
python3 scripts/chapter_1_introduction/tutorial_1_grids_and_galaxies.py
The reasons for this are so that PyAutoGalaxy can:
- Load configuration settings from config files in the `HowToGalaxy/config` folder.
- Write simulated tutorial data to `HowToGalaxy/dataset/`.
- Output the results of model fits to `HowToGalaxy/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 `HowToGalaxy` 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. `tutorial_0_visualization.py`
in `chapter_1_introduction` walks you through the options.
[Press Enter to finish]"""
)