[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
Extends #428, fixing the analogous issue to #427 in Amplitude and PairwiseDistance, and adds a regression test. Also improves the handling of edge cases (zero range of births or persistences) in the persistence_images function in gtda/diagrams/_metrics.py.
Reference issues/PRs
428 and #427
Types of changes
Description Extends #428, fixing the analogous issue to #427 in
Amplitude
andPairwiseDistance
, and adds a regression test. Also improves the handling of edge cases (zero range of births or persistences) in thepersistence_images
function ingtda/diagrams/_metrics.py
.Checklist
flake8
to check my Python changes.pytest
to check this on Python tests.