LinguaPhylo / linguaPhylo

LinguaPhylo: A language for describing, visualising and simulating probabilistic phylogenetic models
GNU Lesser General Public License v3.0
14 stars 7 forks source link

It should have a default ValueFormatter instead of throwing Exception #455

Closed walterxie closed 1 month ago

walterxie commented 1 month ago

It should have a default ValueFormatter (e.g. call value.value().toString()) instead of throwing Exception.

Cannot resolve formatter for node, where type = class lphy.base.evolution.tree.TimeTreeNode, value = lphy.base.evolution.tree.TimeTreeNode@59309333 !
    at lphy.core/lphy.core.logger.ValueFormatResolver.getFormatter(ValueFormatResolver.java:76)
    at lphy.core/lphy.core.logger.ValueFileLoggerListener.replicate(ValueFileLoggerListener.java:154)
    at lphy.core/lphy.core.simulator.NamedRandomValueSimulator.simulateAndLog(NamedRandomValueSimulator.java:75)
    at lphy.core/lphy.core.simulator.SLPhy.call(SLPhy.java:72)
    at lphy.core/lphy.core.simulator.SLPhy.call(SLPhy.java:20)