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
Traceback (most recent call last):
File "", line 1, in
File "/home/yantar92/.venv/lib/python3.12/site-packages/pymatgen/core/structure.py", line 4604, in merge_sites
if props[key] is not None and self[i].properties[key] != props[key]:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Python version
Python 3.12.7
Pymatgen version
Version: 2024.10.22
Operating system version
No response
Current behavior
Error is thrown when I try to run merge_sites.
Traceback (most recent call last):
File "", line 1, in
File "/home/yantar92/.venv/lib/python3.12/site-packages/pymatgen/core/structure.py", line 4604, in merge_sites
if props[key] is not None and self[i].properties[key] != props[key]:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Expected Behavior
merge_sites works without errors :)
Minimal example
Relevant files to reproduce this bug
POSCAR2.gz
POSCAR1.gz
The text was updated successfully, but these errors were encountered: