You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"ASE FixAtoms constraint does not support selective dynamics in only some dimensions."
"Remove the selective dynamics and try again if you do not need them."
)
The ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() can be reproduced by reading CONTCAR with selective_dynamics.
This can be bypassed temporarily by converting poscar.selective_dynamics back to nested list poscar.selective_dynamics = [list(x) for x in poscar.selective_dynamics] Will look into this and submit pr later.
The text was updated successfully, but these errors were encountered:
Describe the bug
AseAtomsAdaptor.get_atoms(structure, **kwargs)
checks numpy boolean array against python nested list. This is a bug similar to my previous PR (#2951).pymatgen/pymatgen/io/ase.py
Lines 107 to 111 in 2330701
The
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
can be reproduced by readingCONTCAR
withselective_dynamics
.This can be bypassed temporarily by converting
poscar.selective_dynamics
back to nested listposcar.selective_dynamics = [list(x) for x in poscar.selective_dynamics]
Will look into this and submit pr later.The text was updated successfully, but these errors were encountered: