-
Notifications
You must be signed in to change notification settings - Fork 0
/
paths.py
43 lines (33 loc) · 1.46 KB
/
paths.py
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
"""
Exposes common paths useful for manipulating datasets and generating figures.
"""
from pathlib import Path
# Absolute path to the top level of the repository
root = Path(__file__).resolve().parents[2].absolute()
# Absolute path to the `src` folder
src = root / "src"
# Absolute path to the `src/data` folder (contains datasets)
data = src / "data"
pe = data / "pe_gwosc_o3"
vectors_bbh = data / "vectors_bbh.pkl"
selection = data / "endo3_bbhpop-LIGO-T2100113-v12.hdf5"
vectors_sel = data / "vectors_sel.hdf5"
result = data / "gwisotropy_result.nc"
# Absolute path to the `src/static` folder (contains static images)
static = src / "static"
# Absolute path to the `src/scripts` folder (contains figure/pipeline scripts)
scripts = src / "scripts"
# Absolute path to the `src/tex` folder (contains the manuscript)
tex = src / "tex"
# Absolute path to the `src/tex/figures` folder (contains figure output)
figures = tex / "figures"
# Absolute path to the `src/tex/output` folder (contains other user-defined output)
output = tex / "output"
event_table = output / "events.tex"
macros = output / "macros.tex"
# control R&P paths
rates_json = data / "analyses_PowerLawPeak/analyses/PowerLawPeak/o1o2o3_mass_c_iid_mag_iid_tilt_powerlaw_redshift_result.json"
rates_ref = data / "control_rates_powerlawpeak_map.txt"
rates_vectors_bbh = data / "control_rates_vectors_bbh.pkl"
rates_vectors_sel = data / "control_rates_vectors_sel.hdf5"
rates_result = data / "control_rates_gwisotropy_result.nc"