dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

Planviz disagrees with Pamela #18

Closed pmdoll closed 8 years ago

pmdoll commented 8 years ago

Pamela compiles a model perfectly fine but planviz refuses to load it.

TPN generated by following command does not load in planviz. pamela -v -v -i biased-coin.pamela -f json -o biased-coin.tpn.json --construct-tpn main:necessary-evil:flip tpn

16-Oct-03 17:16:04.787 xxx-yyy ERROR [planviz.server:1014] - error parsing TPN plan: ../biased-coin.tpn.json 16-Oct-03 17:16:04.788 xxx-yyy ERROR [planviz.server:1015] - {:na-104 {:probability (not (instance? java.lang.Number a-clojure.lang.PersistentArrayMap))}, :na-95 {:probability (not (instance? java.lang.Number a-clojure.lang.PersistentArrayMap))}, :na-121 {:probability (not (instance? java.lang.Number a-clojure.lang.PersistentArrayMap))}, :na-130 {:probability (not (instance? java.lang.Number a-clojure.lang.PersistentArrayMap))}}