Skip to content

Commit 8344a84

Browse files
committed
Back to normal
1 parent 2b34f2f commit 8344a84

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

tests/_basis_util.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,27 +105,7 @@ def testEvaluateExpand(self):
105105
im = self.basis.evaluate(coef1)
106106
if isinstance(im, Image):
107107
im = im.asnumpy()
108-
coef2 = self.basis.expand(im)
109-
110-
import logging
111-
112-
logger = logging.getLogger(__name__)
113-
114-
logger.info(f"coef2.shape: {coef2.shape}")
115-
116-
coef2 = coef2[0]
117-
118-
logger.info("max error: " + str(np.max(np.abs(coef1 - coef2))))
119-
ind = np.argmax(np.abs(coef1 - coef2))
120-
logger.info("max error index: " + str(ind))
121-
logger.info("coef1[0]: " + str(coef1[0]))
122-
logger.info("coef2[0]: " + str(coef2[0]))
123-
124-
logger.info(f"coef1.shape: {coef1.shape}")
125-
logger.info(f"coef2.shape: {coef2.shape}")
126-
127-
logger.info("coef1[ind]: " + str(coef1[ind]))
128-
logger.info("coef2[ind]: " + str(coef2[ind]))
108+
coef2 = self.basis.expand(im)[0]
129109

130110
self.assertTrue(np.allclose(coef1, coef2, atol=utest_tolerance(self.dtype)))
131111

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ commands =
2020
pip freeze
2121
python -c "import numpy; numpy.show_config()"
2222
# --cov should generate `Coverage` data
23-
#pytest --cov=aspire --cov-report=xml {posargs}
24-
pytest {posargs} -k testEvaluateExpand -s
23+
pytest --cov=aspire --cov-report=xml {posargs}
2524

2625
[testenv:docs]
2726
changedir = docs

0 commit comments

Comments
 (0)