TypeError: iteration over a 0-d array
mckib2 opened this issue · comments
validP array sometimes turns out to be a 0-d array and can't be iterated over. I don't know why this happens.
It might happen when k-space is passed in including the ACS region, meaning that patches will be formed from areas in the ACS where no holes can be found. It seems to be fixed when the ACS region is removed from the k-space data.