"""Paths and constants shared by all modules of the gate_lag study.""" import os STUDY = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) CODE = os.path.join(STUDY, "code") DATA = os.path.join(STUDY, "data") FIGS = os.path.join(STUDY, "figures") RAW = os.environ.get("GATE_LAG_RAW", "fermi_raw/gate_lag") for d in (DATA, FIGS, RAW): os.makedirs(d, exist_ok=True) SEED = 20261012 # Present atmospheric level of O2 expressed as a volume mixing ratio (per cent) PAL_PERCENT = 20.95 # 1 PAL in Pa at 1 bar total pressure (used to convert Catling et al. 2005 thresholds) PAL_PA = 21200.0