import os

# home directory of emission-line-fitting module
EMISSION_LINE_FITTING_PATH = os.path.abspath(os.path.dirname(__file__))

# main data directory
SDSS_SPECTRA_PATH = '/db2/Data/pro/SDSS/'

TEST_AGN_SPECTRA_PATH = SDSS_SPECTRA_PATH # os.path.join(EMISSION_LINE_FITTING_PATH, 'agn_bh/fit_agn/')
TEST_AGN_SPECTRA_LIST = os.path.join(EMISSION_LINE_FITTING_PATH, 'tests/agn_spectra_list.txt')
TEST_BAD_FITS_PATH = SDSS_SPECTRA_PATH
TEST_BAD_FITS_LIST = os.path.join(EMISSION_LINE_FITTING_PATH, 'tests/bad_fits_list.txt')

# temporary directory for MC simulations (will be created if does not exist)
MC_TMP_DIR = os.path.join(EMISSION_LINE_FITTING_PATH, 'tmp_mc')

# IDL !path variable for loading modules; @TODO: remove katkov/ hardcoding 
IDL_PATH = ['+/usr/local/itt/idl/external/astron_v55/IDLAstro/',
            '+/usr/local/itt/idl/external/astron_v55/coyote-master/',
            '+/usr/local/itt/idl/external/mpfit/',
            '+' + EMISSION_LINE_FITTING_PATH, # always keep this line
            ]
                       

#--- Include host-specific settings ----------------------------------------
# in settings_local.py on the first line do: from settings import *
# and override below any variable from this file; remember that settings.py must contain
# acceptable defaults so that code checkouts work on all possible installations with minimal setup
if (os.path.exists(os.path.join(EMISSION_LINE_FITTING_PATH, 'settings_local.py'))):
    from settings_local import *
