def test_project_init_guess_basis(self):
    mo1 = mcscf.addons.project_init_guess(mcr_prb, mfr.mo_coeff, prev_mol=mfr.mol)
    s1 = reduce(numpy.dot, (mo1.T, mfr_prb.get_ovlp(), mo1))
    self.assertEqual(numpy.count_nonzero((numpy.linalg.eigh(s1)[0] > 1e-10)), s1.shape[0])
    self.assertAlmostEqual(numpy.linalg.norm(s1), 6.782329983125268, 9)
def test_project_init_guess_basis(self):
    mo1 = mcscf.addons.project_init_guess(mcr_prb, mfr.mo_coeff, prev_mol=mfr.mol)
    s1 = reduce(numpy.dot, (mo1.T, mfr_prb.get_ovlp(), mo1))
    self.assertEqual(numpy.count_nonzero((numpy.linalg.eigh(s1)[0] > 1e-10)), s1.shape[0])
    self.assertAlmostEqual(numpy.linalg.norm(s1), 6.782329983125268, 9)