Fixed 705

This commit is contained in:
Sebastian Koch
2016-07-08 16:16:27 +02:00
parent e16a216e89
commit 269e85ecd9
+1 -1
View File
@@ -45,7 +45,7 @@ if __name__ == "__main__":
res = (s * ((Vmax - Vmin) / (Vmax - Vmin).maxCoeff())).castint()
def lerp(res, Vmin, Vmax, di, d):
return Vmin[d] + di / (res[d] - 1) * (Vmax[d] - Vmin[d])
return Vmin[d] + float(di) / (res[d] - 1) * (Vmax[d] - Vmin[d])
# create grid
print("Creating grid...")