If a tree contains dated tips the scale method of the Tree can return a tree with negative branch lengths. The operator should check that such tree is not valid and return -Infinity if a negative branch length is detected.
A tree stretch move instead of a scale move might be better regardless.
If a tree contains dated tips the scale method of the Tree can return a tree with negative branch lengths. The operator should check that such tree is not valid and return
-Infinity
if a negative branch length is detected.A tree stretch move instead of a scale move might be better regardless.