-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Hi Mike, thank you for the great code! I met two problems when calculating conductivity.
The first is in calcCond.py, it seems that the function: clacJ(self, jx, jy, jz, dt, tsjump, firstpoint,ver) will never use the variable 'firstpoint', which is the GKC_Skip.
The second one is in calcDiffusivity.py. I got a extreme low conductivity because of one negative diffusivity of component. It seems that the maximum possible value of firststep is the len(lnMSD) -1 ( = len( MSD ) -2 since lnMSD = np.log(MSD[1:]) ). Considering len(Time ) = len(MSD), the number of possible i in line 77( for i in range(int(firststep), len(Time)):) is at least 2, which will make the if statement in line 81( if len(calctime)==1:) never be true. Will it be better if change the for loop to be " for i in range(int(firststep)+1, len(Time)): "?