Vasptools
Vasptools copied to clipboard
idpp.py TypeError: list indices must be integers or slices, not tuple
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.