From fc5bb0c9eb016d02254fef9ce85e0bed7c043408 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Fri, 6 Jan 2023 10:34:51 -0800 Subject: [PATCH] Fix failures related to expired usage patterns in dependencies (#112) * Remove global filter for depr warnings in tests. * Replace deprecated np.int usage. * MAINT: Rm numpy upper pin. --- deepcell_tracking/test_utils.py | 2 +- pytest.ini | 5 ----- setup.py | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/deepcell_tracking/test_utils.py b/deepcell_tracking/test_utils.py index f2f28e0..128b389 100644 --- a/deepcell_tracking/test_utils.py +++ b/deepcell_tracking/test_utils.py @@ -50,7 +50,7 @@ def get_annotated_image(img_size=256, num_labels=3, sequential=True, seed=1): ' Increase image size or reduce the number of labels') im = np.zeros((img_size, img_size)) points = img_size * np.random.random((2, num_labels)) - im[(points[0]).astype(np.int), (points[1]).astype(np.int)] = 1 + im[(points[0]).astype(int), (points[1]).astype(int)] = 1 im = sk.filters.gaussian(im, sigma=5) blobs = im > 0.7 * im.mean() all_labels, num_labels_act = sk.measure.label(blobs, return_num=True) diff --git a/pytest.ini b/pytest.ini index 551ce63..80bc628 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,10 +3,5 @@ addopts=-v --durations=20 -# Ignore Deprecation Warnings -filterwarnings = - ignore::DeprecationWarning - ignore::PendingDeprecationWarning - # Do not run tests in the build folder norecursedirs= build .ipynb_checkpoints diff --git a/setup.py b/setup.py index a1509af..c149a28 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ download_url=DOWNLOAD_URL, license=LICENSE, install_requires=['networkx>=2.1', - 'numpy<1.24', + 'numpy', 'pandas', 'scipy', 'scikit-image>=0.14.5',