Skip to content

Commit

Permalink
Use optimized version of skimage.feature.peak_local_max.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrodgom committed Jan 2, 2025
1 parent 08a5b15 commit 0ab4f5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy>=1.14.0
scipy>=0.19
scikit-image>=0.14
scikit-image>=0.25.0
astropy>=2.0
photutils>=0.7
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
include_package_data=True,
install_requires=['numpy>=1.14.0',
'scipy>=0.19',
'scikit-image>=0.14',
'scikit-image>=0.25.0',
'astropy>=2.0',
'photutils>=0.7'],
python_requires='>=3.7',
Expand Down
2 changes: 1 addition & 1 deletion statmorph/tests/test_statmorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def setup_class(self):
'asymmetry': 0.00377345808887,
'smoothness': 0.00430880839402,
'multimode': 0.23423423423423,
'intensity': 0.51203949030140,
'intensity': 0.5110865900793,
'deviation': 0.01522525597953,
'rms_asymmetry2': 0.0053900924481633,
'outer_asymmetry': -0.01821399684443,
Expand Down

1 comment on commit 0ab4f5d

@vrodgom
Copy link
Owner Author

@vrodgom vrodgom commented on 0ab4f5d Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to an optimization in the function skimage.feature.peak_local_max, statmorph's intensity measurements (Freeman et al. 2013) have changed slightly. See scikit-image/scikit-image#7548.

Please sign in to comment.