Skip to content

Commit 19ce9d5

Browse files
committed
fixed bug in ct_align function
1 parent 1fd0d8f commit 19ce9d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amypet/align.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def align_frames(
211211
ifrm = [i for i in range(nfrm) if sfrms[i]]
212212

213213
# > append to the overall list of mashed frames
214-
mfrms.append(ifrm)
214+
if len(ifrm)>0:
215+
mfrms.append(ifrm)
215216

216217
# > update the overall number of frames to be mashed
217218
nmfrm_chck += len(ifrm)

0 commit comments

Comments
 (0)