Ejemplo n.º 1
0
def gather_results(outfile, pointing_indices, ndays, gmags, template_indices):
    if not os.path.exists(outfile):
        raise ValueError("Cannot gather results from {0}".format(outfile))
    results = NumpyCache(outfile)
    brd = np.broadcast(pointing_indices, ndays, gmags, template_indices)
    results = np.array([results.get_row(key) for key in brd])
    return results.reshape(brd.shape + results.shape[-1:])
Ejemplo n.º 2
0
def gather_results(outfile, pointing_indices, ndays, gmags, template_indices):
    if not os.path.exists(outfile):
        raise ValueError("Cannot gather results from {0}".format(outfile))
    results = NumpyCache(outfile)
    brd = np.broadcast(pointing_indices, ndays, gmags, template_indices)
    results = np.array([results.get_row(key) for key in brd])
    return results.reshape(brd.shape + results.shape[-1:])
Ejemplo n.º 3
0
def gather_results(outfile, ids):
    if not os.path.exists(outfile):
        raise ValueError("Cannot gather results from {0}".format(outfile))
    results = NumpyCache(outfile)
    return np.array([results.get_row(lcid) for lcid in ids])
Ejemplo n.º 4
0
def gather_results(outfile, ids):
    if not os.path.exists(outfile):
        raise ValueError("Cannot gather results from {0}".format(outfile))
    results = NumpyCache(outfile)
    return np.array([results.get_row(lcid) for lcid in ids])