first of all: thanks for RasterFairy. Very much appreciated!
I can install and use RasterFairy with Python 2.7. Unfortunately I get this error when I try to to use it with v3.5 (trying to follow Gene Kogans TSNE notebooks with Keras, TF1.0). I am using a conda environment on Windows 10.
Many thanks in advance.
<ipython-input-28-842e2c585a53> in <module>()
6
7 # assign to grid
----> 8 grid_assignment = rasterfairy.transformPointCloud2D(tsne, target=(nx, ny))
H:\KI\keras\rasterfairy.py in transformPointCloud2D(points2d, target, autoAdjustCount, proportionThreshold)
107 if ( len(quadrants[i]['points']) > 1 ):
108 slices = sliceQuadrant(quadrants[i], mask = rasterMask)
--> 109 if len(slices)>1:
110 del quadrants[i]
111 quadrants += slices
H:\KI\keras\rasterfairy.py in sliceQuadrant(quadrant, mask)
170 order = np.lexsort((xy[:,0],xy[:,1]))
171 sliceCount = sliceYCount
--> 172 sliceSize = grid[3] / sliceCount
173 pointsPerSlice = grid[2] * sliceSize
174 gridOffset = grid[1]
TypeError: slice indices must be integers or None or have an __index__ method```