Skip to content

Commit

Permalink
Fix failures related to expired usage patterns in dependencies (#112)
Browse files Browse the repository at this point in the history
* Remove global filter for depr warnings in tests.

* Replace deprecated np.int usage.

* MAINT: Rm numpy upper pin.
  • Loading branch information
rossbar authored Jan 6, 2023
1 parent 14bb1c6 commit fc5bb0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deepcell_tracking/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fc5bb0c

Please sign in to comment.