Schroeder-Lab / Data

For pre-processing raw data (two-photon, ephys, bonsai, ...) and loading/saving data.
0 stars 3 forks source link

function _register_swipe in process_tiff: unused input variable "progress" #35

Closed mariacozan closed 1 year ago

mariacozan commented 1 year ago

The function _register_swipe in process_tiff contains a commented out line of code (first line). Please remove this and the other commented out code for clarity (see below: marked with double asterisks).

def _register_swipe(zstack, start, finish, progress):
    **# print(str(start)+', finish:' + str(finish)+', progress:'+str(progress))**
    for i in range(start, finish, progress):
        if i == 0:
            stackRange = range(i, i + 2)
        elif i == zstack.shape[0] - 1:
            stackRange = range(i - 1, i + 1)
        else:
            stackRange = range(i - 1, i + 2)
       ** # print(str(i)) **
        miniStack = zstack[stackRange]
        res = register_frames(
            miniStack[1, :, :], miniStack[:, :, :].astype(np.int16)
        )
        zstack[stackRange, :, :] = res[0]
    return zstack