Commit ac269b6
committed
Two bugs noticed...
setup.py: builtin/image.py directly imports wordcloud but that is not in setup.py
Not sure why this wasn't seen before. Maybe some other package pulls it
it in implicity? However if it is imported here, it should be mentioned
in setup.py
mathics/builtin/image.py: now that from_python distinguishs ints from
bools image data needs to be converted to an "int" not a "bool".
Otherwise, we get:
1867 ( 4): TEST ImageData[Image[{{0, 1}, {1, 0}, {1, 1}}], "Bit"]
Test failed: ImageData in Reference of Built-in Symbols / Image[] and image related functions.
ImageData[Image[{{0, 1}, {1, 0}, {1, 1}}], "Bit"]
Result: {{False, True}, {True, False}, {True, True}}
Wanted: {{0, 1}, {1, 0}, {1, 1}}1 parent f3682e5 commit ac269b6
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1823 | 1823 | | |
1824 | 1824 | | |
1825 | 1825 | | |
1826 | | - | |
| 1826 | + | |
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments