You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a test function catered to 1-D, 2-D numpy arrays, in particular that could check:
If defined (already implemented)
Have the same datatype (i,g list vs np.array)
Have the same shape (i.g (2,3) vs (3,2))
Has the same contents, or very close (like numpy's allclose https://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.testing.assert_allclose.html), equality is only implemented
Currently if I wanted to do this I have to do the following test:
Copied from @beangoben 's issue raised here: datacamp/pythonwhat#217
(CC @yrdatacamp @hugobowne)
Feature request:
Having a test function catered to 1-D, 2-D numpy arrays, in particular that could check:
https://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.testing.assert_allclose.html
), equality is only implementedCurrently if I wanted to do this I have to do the following test:
Would nice to have a function that could wrap around all these scenarios such as
The text was updated successfully, but these errors were encountered: