Skip to content

Use np.ptp instead of img.ptp for numpy 2#135

Open
joshua-gould wants to merge 1 commit intoCellProfiler:masterfrom
joshua-gould:numpy2
Open

Use np.ptp instead of img.ptp for numpy 2#135
joshua-gould wants to merge 1 commit intoCellProfiler:masterfrom
joshua-gould:numpy2

Conversation

@joshua-gould
Copy link
Copy Markdown
Contributor

AttributeError: 'numpy.ndarray' object has no attribute 'ptp'

import numpy as np

from centrosome.radial_power_spectrum import rps

# AttributeError: 'numpy.ndarray' object has no attribute 'ptp'
rps(np.random.randn(100, 100))

…teError: 'numpy.ndarray' object has no attribute 'ptp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant