This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-30
Channels
- # arachne (1)
- # beginners (1)
- # boot (13)
- # cljs-dev (35)
- # cljsjs (12)
- # cljsrn (11)
- # clojure (77)
- # clojure-austin (14)
- # clojure-brasil (3)
- # clojure-france (1)
- # clojure-poland (4)
- # clojure-russia (23)
- # clojure-spec (39)
- # clojure-uk (14)
- # clojurescript (17)
- # cursive (16)
- # datascript (10)
- # devcards (1)
- # dirac (3)
- # editors (1)
- # emacs (4)
- # jobs (1)
- # jobs-rus (2)
- # luminus (5)
- # off-topic (1)
- # om (85)
- # parinfer (1)
- # perun (12)
- # re-frame (20)
- # reagent (4)
- # spacemacs (1)
- # specter (9)
- # yada (6)
can someone help me figure out this error message?
#object[Error Error: Cannot compare {"s" -2, "m" 1} to {"s" -1, "kg" 1, "m" 1}]
Error: Cannot compare {"s" -2, "m" 1} to {"s" -1, "kg" 1, "m" 1}
I suspect DataScript can't compare maps? must I represent a dimension's formula with another data structure?then I run it
and the result is 1 entity added:
{:datoms [[1 :dimension {"s" -2, "m" 1} 536870913]
[1 :dimension/name "acceleration" 536870913]]}
and an error message:
#object[Error Error: Cannot compare {"s" -2, "m" 1} to {"s" -1, "kg" 1, "m" 1}]
Error: Cannot compare {"s" -2, "m" 1} to {"s" -1, "kg" 1, "m" 1}
but when I run it without the schema I get no errors and all entities are added.oh ok. now I need to find a way to find the dimension's entity id that matches the unit's dimension formula.