error on `len` when ndarray size==0, error on `','.join` when size == 1
WillForan opened this issue · 0 comments
WillForan commented
in ICA_AROMA_functions.py
len(motionICs) >0
len(denIdx) > 0
throws
TypeError: len() of unsized object
when array is empty. And
txt.write(','.join(['%.0f' % num for num in (motionICs+1)]))
#and
','.join(denIdxStr) + 1
throws
TypeError: can only join an iterable
when array.size == 1
I'm on debian jessie:
python -V; python -c 'import numpy; print("numpy: " + numpy.__version__)'
Python 2.7.9
numpy: 1.12.1