Closed railsagainstignorance closed 6 years ago
So this is a Python 2 vs 3 thing. map() in python 3 returns a generator, instead of a list as in Python 2. You can wrap the map calls in list() (or don't use map) in order to end up with a list as originally intended. In generate.py
names = list(map(lambda i: default_names[i], range(len(options['in']))))
all_exist = False
for name in names:
all_exist = all_exist & os.path.exists(directory + name)
if all_exist:
matrices = list(map(lambda name : binary_matrix.read(directory + name), names))
else:
Thanks for reporting this. I'll push a fix tomorrow!
Fixed in aeb9dc8
HI, I tried stepping through the Testing instructions, and bumped into this: