Open Anaphory opened 5 years ago
Actually, we might instead hack based on the ID. Something like
[hacking]
samplingProportionPriorFBD.t:beastlingTree, text=<Beta name="distr" alpha="20.0" beta="0.5" />
should be enough. In that example, I opted for ,
as the separator between ID and property – my choice would have been :
, but that is overused in IDs, while ,
is guaranteed not to be a part of IDs because of BEAST limitations anyway.
This would be a uniform syntax to edit any attribute of any named BEAST object, and with text=
we can also access its object hierarchy.
The things this syntax cannot do:
Things that need more specification to do:
, tail
like in Python XML APIs?spec
or name
would be the better option, anyway, because of BEAST's philosophy of “there should be at least three ways to specifiy something in an XML, and don't you dare just use one of them!”
In #153, we mused about
Does that suggestion have any merit?