lazytensor icon indicating copy to clipboard operation
lazytensor copied to clipboard

concatenation

Open kushalkolar opened this issue 2 years ago • 0 comments

copy pasting from mesmerize-core repo:

Need to create a class which acts as a concatenated version of a LazyArray, for now support concatenation along the time axis. Constructor could perhaps take multiple arrays as an argument and then just map slices from the shapes of the multiple input arrays, or it could also take *args of tuples, (array_0, slice_0), (array_1, slice_1), ... (array_n, slice_n). The various slices are parsed and any getitem on this LazyConcat are mapped to the parsed "sub-slices".

Usecase: concatenating behavior videos, and sometimes the behavior video start before the calcium video, and/or end after the calcium video so sub-slicing is required.

kushalkolar avatar Apr 28 '23 02:04 kushalkolar