# Path: ugali/utils/logger.py
# class SpecialFormatter(logging.Formatter):
#     FORMATS = {'DEFAULT'       : "%(message)s",
#                logging.WARNING : "WARNING: %(message)s",
#                logging.ERROR   : "ERROR: %(message)s"}
#     def format(self, record):
# def file_found(filename,force):


import os, sys
import re
import io
import subprocess
import numpy as np
    import http.client as httpcl
    import httplib as httpcl
        import healpy as hp
        import ugali.utils.projector
        import despydb.desdbi
    import ugali.utils.parser
from ugali.utils.logger import logger
from ugali.utils.shell import mkdir
    from ugali.utils.config import Config
#!/usr/bin/env python



try:
except ImportError:
 

DATABASES = {
    'sdss':['dr10'],
    'des' :['sva1','sva1_gold','y1a1','y2n','y2q1'],
    }

def databaseFactory(survey,release):
    if survey == 'sdss':
        return SDSSDatabase(release = release)
    elif survey == 'des':
        if release == 'y1a1':
            return Y1A1Database()
        elif release == 'y2n':
            return Y2NDatabase()
        elif release == 'y2q1':
            return Y2Q1Database()
        else:
            msg = "Unrecognized release: %s"%release
            raise Exception(msg)
        return DESDatabase(release = release)
    else:

# Path: ugali/utils/logger.py
# class SpecialFormatter(logging.Formatter):
#     FORMATS = {'DEFAULT'       : "%(message)s",
#                logging.WARNING : "WARNING: %(message)s",
#                logging.ERROR   : "ERROR: %(message)s"}
#     def format(self, record):
# def file_found(filename,force):


# Path: ugali/preprocess/database.py
import os, sys
import re
import io
import subprocess
import numpy as np
    import http.client as httpcl
    import httplib as httpcl
        import healpy as hp
        import ugali.utils.projector
        import despydb.desdbi
    import ugali.utils.parser
from ugali.utils.logger import logger
from ugali.utils.shell import mkdir
    from ugali.utils.config import Config

#!/usr/bin/env python



try:
except ImportError:
 

DATABASES = {
    'sdss':['dr10'],
    'des' :['sva1','sva1_gold','y1a1','y2n','y2q1'],
    }

def databaseFactory(survey,release):
    if survey == 'sdss':
        return SDSSDatabase(release = release)
    elif survey == 'des':
        if release == 'y1a1':
            return Y1A1Database()
        elif release == 'y2n':
            return Y2NDatabase()
        elif release == 'y2q1':
            return Y2Q1Database()
        else:
            msg = "Unrecognized release: %s"%release
            raise Exception(msg)
        return DESDatabase(release = release)
    else:

        logger.error("Unrecognized survey: %s"%survey)