Skip to content

Commit

Permalink
Handle mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jan 31, 2024
1 parent 92ed8b8 commit 0187133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyscf/pbc/gto/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def dumps(cell):
celldic['basis']= repr(cell.basis)
celldic['pseudo'] = repr(cell.pseudo)
celldic['ecp'] = repr(cell.ecp)
# Explicitly convert mesh because it is often created as numpy array
celldic['mesh'] = list(cell.mesh)

try:
return json.dumps(celldic)
Expand Down

0 comments on commit 0187133

Please sign in to comment.