__version__ = '0.1'
__all__ = ["atmosphere", "IOmodule", "nIRanalysis", "plotting_functions", "Qcalculator", "resample", "snr_normalization", "utilities"]
# Read the users config.yaml file.
# If it doesn't exist, print a useful help message

import yaml

try:
    f = open("config.yaml")
    config = yaml.load(f)
    f.close()
except FileNotFoundError as e:
    default = __file__[:-11] + "config.yaml"
    import warnings
    warnings.warn("Using the default config.yaml file located at {0}. This is likely NOT what you want. Please create a similar 'config.yaml' file in your current working directory.".format(default), UserWarning)
    f = open(default)
    config = yaml.load(f)
    f.close()


# Read the YAML variables into package-level dictionaries to be used by the other programs.
name = config["name"]
paths = config["paths"]
bands = config["bands"]
# use as resamled_dir = eniric.paths["resampled"]

__version__ = '0.1'
__all__ = ["atmosphere", "IOmodule", "nIRanalysis", "plotting_functions", "Qcalculator", "resample", "snr_normalization", "utilities"]
# Read the users config.yaml file.
# If it doesn't exist, print a useful help message

import yaml

try:
    f = open("config.yaml")
    config = yaml.safe_load(f)
    f.close()
except FileNotFoundError as e:
    default = __file__[:-11] + "config.yaml"
    import warnings
    warnings.warn("Using the default config.yaml file located at {0}. This is likely NOT what you want. Please create a similar 'config.yaml' file in your current working directory.".format(default), UserWarning)
    f = open(default)
    config = yaml.load(f)
    f.close()


# Read the YAML variables into package-level dictionaries to be used by the other programs.
name = config["name"]
paths = config["paths"]
bands = config["bands"]
# use as resamled_dir = eniric.paths["resampled"]

Use safe_load for yaml