I found 2 bugs in KDB and found a fix.
In kdb.py, on line 78:
Code: Select all
#if ibox == None: #old check, raises ValueError on ndarrays
if type(ibox) != numpy.ndarray and type(ibox) != list and type(ibox) != tuple: # my fix
ibox = numpy.linalg.inv(box)
vdir = numpy.dot(r, ibox)
Code: Select all
# if mode = None, create array of zeros.
#if mode == None: #old check, raises ValueError on ndarrays
if type(mode) != numpy.ndarray and type(mode) != list and type(mode) != tuple: # my fix
mode = numpy.zeros((len(atoms),3))
# get important data from ase.Atoms instance
Best,
-Mike