What is a good definition for "an empty array"? is it numpy.empty_like()? or maybe numpy.array()? or something else? ![]() I've been working on this and familiarising myself with the code in an attempt to make my first contribution, but I do have a couple of doubts: Since the nanfunctions are deprecated, is it preferable to modify the tests to check for the RuntimeWarning or better to write a whole new set of tests ?Īlso the change to chk_asarray is handling the case of scalar inputs properly. RuntimeWarning: All-NaN slice encountered Warnings.warn("All-NaN slice encountered", RuntimeWarning) Return _nanmedian1d(part, overwrite_input) py", line 226, in test_nanmedian_scalarsĪssert_equal(stats.nanmedian(np.nan), np.median(np.nan))įile "/home/FOSS/venv2/local/lib/python2.7/site-packages/numpy/lib/utils.py", line 97įile "/home/FOSS/venv2/local/lib/python2.7/site-packages/scipy/stats/stats.py", lineįile "/home/FOSS/venv2/local/lib/python2.7/site-packages/numpy/lib/nanfunctions.py",įile "/home/FOSS/venv2/local/lib/python2.7/site-packages/numpy/lib/function_base.py", ![]() ![]() ERROR: test_nanmedian_scalars (test_stats.TestNanFunc)įile "/home/FOSS/venv2/local/lib/python2.7/site-packages/scipy/stats/tests/test_stats
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |