Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TypeError Traceback (most recent call last)
- <ipython-input-28-bcad79cb17df> in <module>()
- 2
- 3 # You cannot and should update this cell. Just run it
- ----> 4 check('Q9 graph', q9_graph, points=5)
- ~\Dropbox\Comp 116\assignments\A1\comp116.py in check(tag, val, *args, **kwargs)
- 1001
- 1002 elif isinstance(ev, dict) and 'FigureState' in ev:
- -> 1003 score = check_figure(tag, value, ev, extra)
- 1004
- 1005 elif isinstance(ev, float):
- ~\Dropbox\Comp 116\assignments\A1\comp116.py in check_figure(tag, given, ev, extra)
- 824 LOK[j] = (len(eline[0]) == len(gline[0]) and
- 825 len(eline[1]) == len(gline[1]) and
- --> 826 np.allclose(eline[0], gline[0], rtol=rtol, atol=atol) and
- 827 np.allclose(eline[1], gline[1], rtol=rtol, atol=atol))
- 828 if LOK[j]:
- ~\Anaconda3\lib\site-packages\numpy\core\numeric.py in allclose(a, b, rtol, atol, equal_nan)
- 2268
- 2269 """
- -> 2270 res = all(isclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan))
- 2271 return bool(res)
- 2272
- ~\Anaconda3\lib\site-packages\numpy\core\numeric.py in isclose(a, b, rtol, atol, equal_nan)
- 2362
- 2363 xfin = isfinite(x)
- -> 2364 yfin = isfinite(y)
- 2365 if all(xfin) and all(yfin):
- 2366 return within_tol(x, y, atol, rtol)
- TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement