josauder / procedural_city_generation

Procedural City Generation program implemented in Python and Visualized with Blender.
Mozilla Public License 2.0
561 stars 86 forks source link

Can Anyone help me, I got stuck at population density something to do with Singleton #30

Closed kalle84 closed 3 years ago

kalle84 commented 3 years ago

I ran tester.py fined do error.

but when i run python ui.py roadmap run

I got this error.

population_density = population_density = np.sqrt((singleton.img2[singleton.img2.shape[0]-y*singleton.img2.shape[0]][x*singleton.img2.shape[1]][0])/255)

IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices (city2) PS P:\procedural_city_generation>

julianyulu commented 3 years ago

Hi @kalle84 , I got the same error, wondering how you solved it by the end ? Thanks