iqtree / iqtree2

NEW location of IQ-TREE software for efficient phylogenomic software by maximum likelihood http://www.iqtree.org
GNU General Public License v2.0
246 stars 57 forks source link

Fix bug reading input rate file #211

Closed tothuhien closed 5 months ago

bqminh commented 5 months ago

It looks good, except that we normally check for reading file errors (e.g. to avoid trivial user mistakes like non-existing files or other errors): file reading should be safe guarded in try catch statement. For example, please have a look at readDateFile() function of that timetree.cpp file. Can you please update the pull request that way?

tothuhien commented 5 months ago

Hi, I have just committed some edits upon your suggestion. I'm not familiar with this kind of handling input file, so feel free to adjust the code if there's any problem. Thanks.