LinguaPhylo / LPhyBeast

Convert LPhy scripts to BEAST 2 XML
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Recognise LPhy Macro in LPhyBEAST #125

Closed walterxie closed 11 months ago

walterxie commented 1 year ago

From Alexei: Then there will not be a connection between the lphy file and the actual simulations without know what the command line was. Looking just at the lphy script could be misleading.

Another option would be to have a macro like:

data {
    n = ${n}
    L = ${L};
   ...
}

or

data {
    n = {{n}}
    L = {{L}};
   ...
}

Which is replaced by templating before the script is fed into the LPhy parser.

walterxie commented 1 year ago

n = ${n = 10};

walterxie commented 1 year ago

The problem here is that we cannot run the template directly in studio.

walterxie commented 12 months ago

Use lphy new core 1.5.x, which will handle {{n = 10}}