ENHANCE-PET/FALCON

FALCON fails when not starting with frame 0

Keyn34 opened this issue · 1 comments

Error description
FALCON raises error

Traceback (most recent call last):
File "/usr/local/bin/falcon", line 163, in <module>
[logging.info](https://logging.info/)(f"Copying files {non_moco_files[x].name} to {moco_dir}")
AttributeError: 'str' object has no attribute 'name'

when not starting with frame/volume 0

How to reproduce
Take (presumably) any multi volume sequence and initiate FALCON with any later frame than 0 for -s

@LalithShiyam as quick suggestion: seems like line 161 in run_falcon.py is the issue, maybe changing
for x in range(0, start_frame):
to
for x in range(start_frame, len(non_moco_files)):

Also, potentially the if-condition could be removed along those changes....