def _dump_qmc(self):
<EOL>io5 = h5py.File(self.database.output, '<STR_LIT:r>')<EOL>self.files.qdump = os.path.join(self.dirs, self.name+"<STR_LIT>")<EOL>LOGGER.info("<STR_LIT>", self.files.qdump)<EOL>outfile = open(self.files.qdump, '<STR_LIT:w>')<EOL>for idx in xrange(<NUM_LIT:0>, self.params.nquartets, self._chunksize):<EOL><INDENT>masked_quartets = io5["<STR_LIT>"][idx:idx+self._chunksize, :]<EOL>quarts = [list(j) for j in masked_quartets]<EOL>chunk = ["<STR_LIT>".format(*i) for i in quarts]<EOL>outfile.write("<STR_LIT:\n>".join(chunk)+"<STR_LIT:\n>")<EOL><DEDENT>outfile.close()<EOL>io5.close()<EOL>
Makes a reduced array that excludes quartets with no information and 
prints the quartets and weights to a file formatted for wQMC