File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
2726changedir = docs
You can’t perform that action at this time.
0 commit comments