katylettuce / beast-mcmc

Automatically exported from code.google.com/p/beast-mcmc
0 stars 0 forks source link

TreeModels allows a leafHeight parameter to be replaced multiple times #679

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you create a leafHeight parameter:

<leafHeight taxon="D4Indon76">
    <parameter id="indonHeight"/>
</leafHeight>

This parameter gets replaced with the appropriate one in the tree model. If you 
then use an idref of the same parameter to try and link the two leaf heights:

<leafHeight taxon="D4Indon77">
    <parameter idref="indonHeight"/>
</leafHeight>

What happens is the second tip height parameter from the tree model gets 
swapped with the parameter losing the connection with the first. 

This behaviour is unexpected because of the strange way treemodel works. There 
needs to be a check and error thrown. Linking parameters in this way can be 
done with the new EqualityConstrainedParameter.

Original issue reported on code.google.com by ramb...@gmail.com on 3 Mar 2013 at 8:44

GoogleCodeExporter commented 9 years ago

Original comment by ramb...@gmail.com on 25 Aug 2014 at 1:31