VBIndex / py_vb_toolbox

Vogt-Bailey index toolbox in Python
GNU General Public License v3.0
12 stars 12 forks source link

Update vb_index.py #52

Closed ChristineFarrugia closed 1 year ago

ChristineFarrugia commented 1 year ago

Added np.atleast_2d after 'squeezing out' any 'empty' voxels from the neighborhood. This way, if the squeezing removes all voxels but one, its time series is converted from a 1D array to a 2D array and the size of the neighbourhood is stored as 1, rather than the length of the time series.