Closed chiang-yuan closed 1 week ago
No response
v0.3.5
Was trying to calculate the diatomic dissociation energy curves and found chgnet could not take two isolated atoms beyond cutoff
from chgnet.model.dynamics import CHGNetCalculator atoms = Atoms('HH', positions=[[0, 0, 0], [7, 0, 0]], cell=[14, 14.001, 14.002], pbc=True) calc = CHGNetCalculator() atoms.calc = calc print(atoms.get_potential_energy())
IndexError: too many indices for tensor of dimension 1
solved in https://github.com/CederGroupHub/chgnet/commit/b819ef55f6dd87cc1e2b450c41cd47e5b06544e8
Email (Optional)
No response
Version
v0.3.5
Which OS(es) are you using?
What happened?
Was trying to calculate the diatomic dissociation energy curves and found chgnet could not take two isolated atoms beyond cutoff
Code snippet
Log output
Code of Conduct