Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Oct 15, 2023
1 parent b5a787a commit 7eb0247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pyscf/pbc/symm/pyscf_spglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def cell_to_spgcell(cell):
atm_num.append(elements.NUC[symbol])
for iatm in range(cell.natm):
symb = cell.atom_symbol(iatm)
idx = ''.join([i for i in symb if unicode(i).isnumeric()])
idx = unicode(idx)
idx = ''.join([i for i in symb if i.isnumeric()])
if idx.isnumeric():
atm_num[iatm] += int(idx) * 1000
spg_cell = (a, atm_pos, atm_num, cell.magmom)
Expand Down
3 changes: 2 additions & 1 deletion pyscf/solvent/pol_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@

import cppe
from packaging.version import parse as _parse_version
if _parse_version(cppe.__version__) < _parse_version('0.3.1'):
min_version = '0.3.1'
if _parse_version(cppe.__version__) < _parse_version(min_version):
raise ModuleNotFoundError("cppe version {} is required at least. "
"Version {} was found.".format(min_version, cppe.__version__))

Expand Down

0 comments on commit 7eb0247

Please sign in to comment.