neuralib.suite2p.signals.sync_s2p_rigevent
- neuralib.suite2p.signals.sync_s2p_rigevent(image_time, s2p, plane=0)[source]
Do the alignment to make the shape the same in hardware pulses (P,) & suite2p output files (F,)
* ASSUME both recordings are sync
* ASSUME sequential scanning pattern. i.e., 0, 1, 2, 3 ETL scanning order
- Parameters:
image_time (ndarray) – imaging time hardware pulses. Array[float, P]
s2p (Suite2PResult) –
Suite2PResultplane (int | None) – number of optical plane
- Returns:
image_time: with same len as s2p results Array[float, F]
- Return type:
ndarray