def coordinatesFromIndex(index, dimensions):
coordinates = [<NUM_LIT:0>] * len(dimensions)<EOL>shifted = index<EOL>for i in xrange(len(dimensions) - <NUM_LIT:1>, <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>coordinates[i] = shifted % dimensions[i]<EOL>shifted = shifted / dimensions[i]<EOL><DEDENT>coordinates[<NUM_LIT:0>] = shifted<EOL>return coordinates<EOL>
Translate an index into coordinates, using the given coordinate system.

Similar to ``numpy.unravel_index``.

:param index: (int) The index of the point. The coordinates are expressed as a 
       single index by using the dimensions as a mixed radix definition. For 
       example, in dimensions 42x10, the point [1, 4] is index 
       1*420 + 4*10 = 460.

:param dimensions (list of ints) The coordinate system.

:returns: (list) of coordinates of length ``len(dimensions)``.