./sferes2/Candycane_2016-03-08_18_10_39_8508/archive_5.dat
Traceback (most recent call last):
File "plot_map.py", line 40, in <module>
data[round(x[i] * size), round(y[i] * size)] = z[i]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
I think it's due to some changes in Numpy. The reason to why this is happening is because the value of round(x[i] * size) is 1.0, not the integer 1, which can be seen in pdb:
I got this error when running the script:
I think it's due to some changes in Numpy. The reason to why this is happening is because the value of round(x[i] * size) is 1.0, not the integer 1, which can be seen in pdb:
This was easily fixed by casting the value to an integer.