Skip to content

Commit c96ceb8

Browse files
committed
Revert commented code
1 parent e2f17d0 commit c96ceb8

File tree

1 file changed

+12
-12
lines changed
  • element_calcium_imaging/export/nwb

1 file changed

+12
-12
lines changed

element_calcium_imaging/export/nwb/nwb.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,18 @@ def _add_segmentation_data_to_nwb(session_key, nwbfile, imaging_plane):
298298
unit="a.u.",
299299
rate=(scan.ScanInfo & session_key).fetch1("fps"),
300300
)
301-
# deconvolved_series = RoiResponseSeries(
302-
# name=f"Deconvolved_{channel}",
303-
# data=np.stack(
304-
# (
305-
# imaging.Activity.Trace & session_key & f"fluo_channel='{channel}'"
306-
# ).fetch("activity_trace")
307-
# ).T,
308-
# rois=rt_region,
309-
# unit="a.u.",
310-
# rate=(scan.ScanInfo & session_key).fetch1("fps"),
311-
# )
312-
fl = Fluorescence(roi_response_series=[roi_resp_series, neuropil_series])
301+
deconvolved_series = RoiResponseSeries(
302+
name=f"Deconvolved_{channel}",
303+
data=np.stack(
304+
(
305+
imaging.Activity.Trace & session_key & f"fluo_channel='{channel}'"
306+
).fetch("activity_trace")
307+
).T,
308+
rois=rt_region,
309+
unit="a.u.",
310+
rate=(scan.ScanInfo & session_key).fetch1("fps"),
311+
)
312+
fl = Fluorescence(roi_response_series=[roi_resp_series, neuropil_series, deconvolved_series])
313313
ophys_module.add(fl)
314314

315315

0 commit comments

Comments
 (0)