Orange Forum • View topic - Problem reading discrete variable

Problem reading discrete variable

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Problem reading discrete variable

Postby John » Fri Apr 29, 2005 22:36

With the file iris.txt containing:

sepal length sepal width D#petal length petal width c#iris
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3.0 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5.0 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5.0 3.4 1.5 0.2 Iris-setosa

the command
data = orange.ExampleTable('iris.txt')
sets the attribute "petal length" to be a FloatVariable. With the "D#" in front of it, shouldn't "petal length" be an EnumVariable?

Thanks,

John

Postby Janez » Thu May 05, 2005 15:55

Shame on me: I wrote = instead of ==.
I fixed it and put it on CVS. It will be in this night's snapshot.

Unfortunately, you cannot circumvent this bug, you need to either update orange or use .tab file.


Return to Bugs



cron