Exemplo n.º 1
0
def getWindowFunc(o):
    if o.wftype == "none":
        return WindowBase()
    elif o.wftype == "radecbcut":
        return WindowDecBcut(options=o)
    elif o.wftype == "healpix":
        return WindowHealpix(options=o)
    elif o.wftype == "depthvar":
        return WindowDepthVariations(options=o)
    else:
        print "Bad WF type:", o.wftype
        stop()