def vol_cat(volpaths, crop=None, resize_shape=None, rescale=None, verbose=False, name='vol_cat', ext='.npz', nb_labels_reshape=(- 1), vol_rand_seed=None, **kwargs):
    '\n    generator with (volume, binary_bit) (random order)\n    ONLY works with abtch size of 1 for now\n\n    verbose is passed down to the base generators.py primitive generator (e.g. vol, here)\n    '
    folders = [f for f in sorted(os.listdir(volpaths))]
    proc_vol_fn = (lambda x: nrn_proc.vol_proc(x, crop=crop, resize_shape=resize_shape, interp_order=2, rescale=rescale))
    generators = ()
    generators_len = ()
    for folder in folders:
        vol_gen = vol(os.path.join(volpaths, folder), **kwargs, ext=ext, vol_rand_seed=vol_rand_seed, data_proc_fn=proc_vol_fn, nb_labels_reshape=1, name=folder, verbose=False)
        generators_len += (len(_get_file_list(os.path.join(volpaths, folder), '.npz')),)
        generators += (vol_gen,)
    bake_data_test = False
    if bake_data_test:
        print('fake_data_test', file=sys.stderr)
    while 1:
        order = np.hstack((np.zeros(generators_len[0]), np.ones(generators_len[1]))).astype('int')
        np.random.shuffle(order)
        for idx in order:
            gen = generators[idx]
            z = np.zeros([1, 2])
            z[(0, idx)] = 1
            data = next(gen).astype('float32')
            if (bake_data_test and (idx == 0)):
                data = (- data)
            (yield (data, z))
generator with (volume, binary_bit) (random order)
ONLY works with abtch size of 1 for now

verbose is passed down to the base generators.py primitive generator (e.g. vol, here)
def vol_cat(volpaths, crop=None, resize_shape=None, rescale=None, verbose=False, name='vol_cat', ext='.npz', nb_labels_reshape=(- 1), vol_rand_seed=None, **kwargs):
    '\n    generator with (volume, binary_bit) (random order)\n    ONLY works with abtch size of 1 for now\n\n    verbose is passed down to the base generators.py primitive generator (e.g. vol, here)\n    '
    folders = [f for f in sorted(os.listdir(volpaths))]
    proc_vol_fn = (lambda x: nrn_proc.vol_proc(x, crop=crop, resize_shape=resize_shape, interp_order=2, rescale=rescale))
    generators = ()
    generators_len = ()
    for folder in folders:
        vol_gen = vol(os.path.join(volpaths, folder), **kwargs, ext=ext, vol_rand_seed=vol_rand_seed, data_proc_fn=proc_vol_fn, nb_labels_reshape=1, name=folder, verbose=False)
        generators_len += (len(_get_file_list(os.path.join(volpaths, folder), '.npz')),)
        generators += (vol_gen,)
    bake_data_test = False
    if bake_data_test:
        print('fake_data_test', file=sys.stderr)
    while 1:
        order = np.hstack((np.zeros(generators_len[0]), np.ones(generators_len[1]))).astype('int')
        np.random.shuffle(order)
        for idx in order:
            gen = generators[idx]
            z = np.zeros([1, 2])
            z[(0, idx)] = 1
            data = next(gen).astype('float32')
            if (bake_data_test and (idx == 0)):
                data = (- data)
            (yield (data, z))