Skip to content
Snippets Groups Projects
Commit 9cf22eb9 authored by Jakobsen, Mads Bregenholt's avatar Jakobsen, Mads Bregenholt
Browse files

debugging

parent 6c253ec1
No related merge requests found
Pipeline #167657 passed
...@@ -34,7 +34,7 @@ def make_onlineroi_from_roi_array(roi_array): ...@@ -34,7 +34,7 @@ def make_onlineroi_from_roi_array(roi_array):
index += length index += length
else: else:
index += 1 index += 1
return compressed_data return compressed_data.get()
online_roi_data = dict() online_roi_data = dict()
for roi_nr in range(num_rois): for roi_nr in range(num_rois):
...@@ -44,14 +44,14 @@ def make_onlineroi_from_roi_array(roi_array): ...@@ -44,14 +44,14 @@ def make_onlineroi_from_roi_array(roi_array):
# reshape this online_roi_data into a np array. # reshape this online_roi_data into a np array.
online_roi_data_max_length = 0 online_roi_data_max_length = 0
for key, online_roi_data in online_roi_data.values(): for key, online_roi_data in online_roi_data.values():
this_size = online_roi_data.get_size() this_size = online_roi_data.size
if this_size > online_roi_data_max_length: if this_size > online_roi_data_max_length:
online_roi_data_max_length = this_size online_roi_data_max_length = this_size
online_roi = np.zeros(shape=(num_rois, online_roi_data_max_length), dtype=np.uint64) online_roi = np.zeros(shape=(num_rois, online_roi_data_max_length), dtype=np.uint64)
for key, online_roi_data in online_roi_data.values(): for key, online_roi_data in online_roi_data.values():
this_size = online_roi_data.get_size() this_size = online_roi_data.size
online_roi[int(key),:this_size] = online_roi_data.get() online_roi[int(key),:this_size] = online_roi_data
return online_roi return online_roi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment