def add_simple_energy(self): for name, energy in self.data_tuple_double: add_energy(run_id=self.run_id, name=name, e=energy, err=None, overwrite=self.overwrite) conn.commit()
def add_qmc(self): for name, energy, err in self.data_tuple_triple: add_energy(run_id=self.run_id, name=name, e=energy, err=err, overwrite=self.overwrite) conn.commit()
def add_cipsi_epp(self): for name, energy, ept2 in self.data_tuple_triple: for run_id, e in ([self.run_id, energy], [self.run_id_pt2, ept2]): add_energy(run_id=run_id, name=name, e=e, err=None, overwrite=self.overwrite) conn.commit()
def add_qmc(self): for name, energy, err in self.ll_data: add_energy(run_id=self.run_id, name=name, e=energy, err=err, overwrite=self.overwrite) conn.commit()
def add_simple_energy(self): for name, energy in self.ll_data: add_energy(run_id=self.run_id, name=name, e=energy, err=None, overwrite=self.overwrite) conn.commit()
def add_cipsi_epp(self): for name, energy, ept2 in self.ll_data: for run_id, e in ([self.run_id, energy], [self.run_id_pt2, ept2]): add_energy(run_id=run_id, name=name, e=e, err=None, overwrite=self.overwrite) conn.commit()
def add_cipsi(self): for name, energy, pt2 in self.ll_data: ept2 = float(e) + float(pt2) for run_id, e in ([self.run_id, energy], [self.run_id_pt2, ept2]): add_energy(run_id=run_id, name=name, e=e, err=None, overwrite=self.overwrite) conn.commit()