From fb872a2a9c8aa97f9fec6027646cdfe35bde4375 Mon Sep 17 00:00:00 2001 From: Mika Rubinov <10106032+mikarubi@users.noreply.github.com> Date: Thu, 14 Dec 2023 12:12:40 -0600 Subject: [PATCH] fix location of cell_block_id in step4e.py --- voluseg/_steps/step4e.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voluseg/_steps/step4e.py b/voluseg/_steps/step4e.py index e1ee566..9a576d4 100644 --- a/voluseg/_steps/step4e.py +++ b/voluseg/_steps/step4e.py @@ -46,10 +46,10 @@ def add_data(tuple_ii): fullname_block = os.path.join(dir_cell, 'block%05d'%(ii)) with h5py.File(fullname_block+hdf, 'r') as file_handle: for ci in range(file_handle['n_cells'][()]): - cell_block_id.append(ii) cell_xyz.append(file_handle['/cell/%05d/xyz'%(ci)][()]) cell_weights.append(file_handle['/cell/%05d/weights'%(ci)][()]) cell_timeseries.append(file_handle['/cell/%05d/timeseries'%(ci)][()]) + cell_block_id.append(ii) except KeyError: print('block %d is empty.'%ii)