Skip to content

Commit 7c226f6

Browse files
authored
Merge pull request #1036 from mathics/two-fixes
Two bugs noticed...
2 parents 03b7198 + d2f76cf commit 7c226f6

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ before_install:
2020
- LLVM_CONFIG=/usr/bin/llvm-config-10 CXXFLAGS=-fPIC python -m pip install llvmlite
2121
- pip install ipywidgets ipykernel requests IPython==5.0.0 langid pycountry pyenchant lxml matplotlib
2222
- python travis.py
23-
- pip install cython unittest2 pexpect scikit-image
23+
- pip install cython unittest2 pexpect
2424
install:
2525
- sed -i "s/'sympy==[0-9]\.[0-9]\.[0-9]', //" setup.py
2626
- make develop

mathics/builtin/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ def apply(self, image, stype, evaluation):
18231823
elif stype == "Bit16":
18241824
pixels = pixels_as_uint(pixels)
18251825
elif stype == "Bit":
1826-
pixels = pixels.astype(numpy.bool)
1826+
pixels = pixels.astype(numpy.int)
18271827
else:
18281828
return evaluation.message("ImageData", "pixelfmt", stype)
18291829
return from_python(numpy_to_matrix(pixels))

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ def read(*rnames):
7878
CMDCLASS = {"build_ext": build_ext}
7979
INSTALL_REQUIRES += ["cython>=0.15.1"]
8080

81-
if sys.platform == "darwin":
82-
INSTALL_REQUIRES += ["scikit-image"]
83-
8481
# General Requirements
8582
INSTALL_REQUIRES += [
8683
"sympy>=1.6, < 1.7",
@@ -92,6 +89,8 @@ def read(*rnames):
9289
"python-dateutil",
9390
"llvmlite",
9491
"requests",
92+
"scikit-image",
93+
"wordcloud", # Used in builtin/image.py by WordCloud()
9594
]
9695

9796

0 commit comments

Comments
 (0)