Skip to content

Commit

Permalink
Update meso_svd_area2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lsusman authored Jul 9, 2023
1 parent d01297f commit ec0aa9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workflow/pipeline/meso_svd_area2.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ def compute_SVD(self, self2, self3, key, flag_zscore, time_bin, thresholds_for_e
u_limited = [ui[:num_comp] for ui in u]
vt = vh[:num_components_save]

# key_ROIs = (rel_data_area & key).fetch('KEY', order_by='roi_number')
# for i in range(500):
# key_ROIs[i]['roi_components'] = u_limited[i]
# key_ROIs[i]['time_bin'] = time_bin
# key_ROIs[i]['threshold_for_event'] = threshold
key_ROIs = (rel_data_area & key).fetch('KEY', order_by='roi_number')
for i in range(500):
key_ROIs[i]['roi_components'] = u_limited[i]
key_ROIs[i]['time_bin'] = time_bin
key_ROIs[i]['threshold_for_event'] = threshold

# InsertChunked(self, key_ROIs, 1000)
InsertChunked(self, key_ROIs, 1000)

svd_key = {**key, 'time_bin': time_bin, 'threshold_for_event': threshold}
self2.insert1({**svd_key, 'singular_values': s}, allow_direct_insert=True)
Expand Down

0 comments on commit ec0aa9f

Please sign in to comment.