Vasptools icon indicating copy to clipboard operation
Vasptools copied to clipboard

idpp.py TypeError: list indices must be integers or slices, not tuple

Open jzhang-github opened this issue 2 years ago • 0 comments

https://github.com/ponychen123/Vasptools/blob/bcb985d1cb78d3e20ffd92ab0231111ead0e0049/idpp.py#L79 Since the fix is a list, python raises the TypeError if this list is accessed in this way: https://github.com/ponychen123/Vasptools/blob/bcb985d1cb78d3e20ffd92ab0231111ead0e0049/idpp.py#L206

I can run this code by adding fix = np.array(fix), but I am facing the same error at other lines.

jzhang-github avatar Nov 28 '22 02:11 jzhang-github