Menu

Commit [r1959]  Maximize  Restore  History

Added a special case to deal with stacks that only have one z layer.

Problem: run_fissa was called with export_to_matfile, which routes the results through Python's savemat; for a single-layer/single-trial stack, FISSA returns per-ROI object arrays with differing component counts, and savemat crashed trying to pack those arrays into one homogeneous array (the (5,1) + inhomogeneous part ValueError).

Fix: branch when nLayers==1: instead of exporting to a matfile, it reads FISSA's returned tuple directly in MATLAB, pulling each ROI's separated neuron trace (row 1 of its 5×nFrames block) and storing it in activity_fissa_corrected. The existing 4-layer pipeline behaves exactly as before.

kellgeor 2026-06-05

changed /21_Analysis/ROI_fissa.m
/21_Analysis/ROI_fissa.m Diff Switch to side-by-side view
Loading...
Auth0 Logo