Skip to content

Commit

Permalink
Update molecular symmetry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Nov 30, 2019
1 parent e92bc48 commit 2754e30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyscf/symm/test/test_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ def get_so(atoms, basis, cart=False):
gpname, origin, axes = symm.detect_symm(atoms)
gpname, axes = symm.subgroup(gpname, axes)
atoms = gto.mole.format_atom(atoms, origin, axes, 'Bohr')
try:
mol = gto.M(atom=atoms, basis=basis, unit='Bohr')
except RuntimeError:
mol = gto.M(atom=atoms, basis=basis, spin=1, unit='Bohr')
mol = gto.M(atom=atoms, basis=basis, unit='Bohr', spin=None)
mol.cart = cart
so = symm.basis.symm_adapted_basis(mol, gpname)[0]
n = 0
Expand Down

0 comments on commit 2754e30

Please sign in to comment.