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:])
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])