ENHANCE-PET / FALCON

FALCON is a Python-based software application designed to facilitate PET motion correction, both for head and total-body scans. Our program is built around the fast 'greedy' registration toolkit, which serves as the registration engine. With FALCON, users can enjoy a streamlined experience for implementing motion correction.
GNU General Public License v3.0
38 stars 6 forks source link

FALCON fails when not starting with frame 0 #5

Closed Keyn34 closed 2 years ago

Keyn34 commented 2 years ago

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

Keyn34 commented 2 years ago

@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....