mikera / core.matrix

core.matrix : Multi-dimensional array programming API for Clojure
Other
700 stars 113 forks source link

pm breaks on dataset unless given :column-names? false #317

Closed jsa-aerial closed 7 years ago

jsa-aerial commented 7 years ago

Don't know when it broke, but in current release 0.60.2:

(def d (ds/dataset [:A :B] [[1.0 2.0] [3.0 4.0]]))

'expl/d

expl> (m/pm d) ClassCastException java.lang.String cannot be cast to java.lang.Number clojure.lang.Numbers.double_array (Numbers.java:1161) expl> (m/pm d {:column-names? false}) [[1.000 2.000] [3.000 4.000]]

mikera commented 7 years ago

This happens for me when using the :double-array implementation only.

I have a fix for this, will release shortly

mikera commented 7 years ago

Fixed in 0.60.3