def _move_zeros_to_the_end(ntf_z, inband_zeros):
    to_the_end = [i for i, iz in enumerate(inband_zeros) if not iz]
    for i, orig in enumerate(to_the_end):
        ntf_z = np.append(ntf_z, ntf_z[orig - i])
        ntf_z = np.delete(ntf_z, orig - i)
        inband_zeros = np.append(inband_zeros, inband_zeros[orig - i])
        inband_zeros = np.delete(inband_zeros, orig - i)
    return ntf_z, inband_zeros
RealizeQNTF requires the imageband zeros to be put at the end
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/_realizeQNTF.py/_move_zeros_to_the_end