TypeError: unsupported operand type(s) for +: 'range' and 'range'
Opened this issue · 0 comments
AudreyBaguette commented
Hello!
I am trying to follow the demo steps from the REAME file, but step 1.2 returned the following error:
Traceback (most recent call last):
File "gen-MULTICELL-features.py", line 116, in
main(args)
File "gen-MULTICELL-features.py", line 68, in main
train_range=range(0,fold*validation_set_size)+range((fold+1)*validation_set_size,n)
TypeError: unsupported operand type(s) for +: 'range' and 'range'
I fixed it by changing line 68 in gen-MULTICELL-features.py (locally) for
train_range = [i for i in range(0,fold*validation_set_size)] + [j for j in range((fold+1)*validation_set_size,n)]