Entering edit mode
5.2 years ago
jamessweetjones
•
0
Hi all,
I am trying to construct HapFLK local population trees using the local_reynolds.py script available on the HapFLK website. However, this script does not want to continue analysis because I keep receiving this error
File "local_reynolds.py", line 132, in main
my_pops=get_pop_names(myfic[0])
IndexError: list index out of range
Has anyone else received this error and how have you got around it?
Best, James
We'll need to see more of the code, and how you're calling it to say whats wrong.
The error is fairly self explanatory, the zero-th element of the list
myfic
doesn't exist (the list is empty). So the question is, why is it empty - which we can't say from that snippet alone.