Skip to content

Commit 1e7a924

Browse files
authored
Add sympy package (#937)
Required by our Learn vision class. http://b/177552728
1 parent 9ba46ce commit 1e7a924

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ RUN pip install flashtext && \
410410
pip install pydegensac && \
411411
pip install pytorch-lightning && \
412412
pip install datatable && \
413+
pip install sympy && \
413414
/tmp/clean-layer.sh
414415

415416
# Tesseract and some associated utility packages

tests/test_sympy.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import unittest
2+
3+
import numpy as np
4+
import sympy
5+
6+
class TestSympy(unittest.TestCase):
7+
def test_matrix(self):
8+
self.assertEqual((2, 2), sympy.Matrix([[0, 1], [1, 0]]).shape)

0 commit comments

Comments
 (0)